Tests - add -T (trace) option to eventscripts run_test.sh
authorMartin Schwenke <martin@meltin.net>
Fri, 19 Aug 2011 01:21:33 +0000 (11:21 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 30 Aug 2011 06:51:54 +0000 (16:51 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/eventscripts/run_tests.sh

index cb2c8f2950763c920e82f9e1fc5115d93261eea4..ec17b5f7a71a08eba52e6c5a9fbc141d4f80c076 100755 (executable)
@@ -15,6 +15,12 @@ for i ; do
            export EVENTSCRIPT_TESTS_VERBOSE="yes"
            shift
            ;;
+       -T)
+           # This will cause tests to fail but is good for debugging
+           # individual tests when they fail.
+           export EVENTSCRIPTS_TESTS_TRACE="sh -x"
+           shift
+           ;;
        -*)
            opts="$opts $i"
            shift