ktest: Check parent options for iterated tests
authorRabin Vincent <rabin@rab.in>
Fri, 18 Nov 2011 11:35:30 +0000 (17:05 +0530)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 18 Nov 2011 16:07:24 +0000 (11:07 -0500)
commitf9dfb65b055c56678afa03e13e942761459ea53d
tree17f3769ab7942b702ea2e2aed088ca149a5d37d5
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37
ktest: Check parent options for iterated tests

Let's say we have "OUTPUT_DIR = build/${TEST_NAME}", and we're iterating
a test.  In the second iteration of a test, the TEST_NAME of the test
we're repeating is not used.  Instead, ${TEST_NAME} appears literally:

   touch /home/rabin/kernel/test/build/${TEST_NAME}/.config ... SUCCESS

Fix this by making __eval_option() check the parent test options
for a repeated test.

Link: http://lkml.kernel.org/r/1321616131-21352-2-git-send-email-rabin@rab.in
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl