From a1ddc79adf6f6b2bf78dfe51922355736998f7da Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 31 Oct 2013 14:39:09 +0200 Subject: [PATCH] tests: Remove separate error/failed text file The new sqlite database for results deprecated this. Signed-hostap: Jouni Malinen --- tests/hwsim/run-all.sh | 2 +- tests/hwsim/run-tests.py | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/hwsim/run-all.sh b/tests/hwsim/run-all.sh index bd894a1e8..84b5baefe 100755 --- a/tests/hwsim/run-all.sh +++ b/tests/hwsim/run-all.sh @@ -63,7 +63,7 @@ if ! ./start.sh $CONCURRENT $VALGRIND $TRACE; then exit 1 fi -./run-tests.py -D --logdir "$LOGDIR" $TRACE_ARGS -l $DB -e failed $CONCURRENT_TESTS $@ || errors=1 +./run-tests.py -D --logdir "$LOGDIR" $TRACE_ARGS -l $DB $CONCURRENT_TESTS $@ || errors=1 ./stop-wifi.sh diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 240b19082..5b2f884bf 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -104,9 +104,6 @@ def main(): group.add_argument('-l', action='store_true', dest='logfile', help='store debug log to a file (in log directory)') - parser.add_argument('-e', metavar="", dest='errorfile', - nargs='?', const="failed", - help='error filename (in log directory)') parser.add_argument('-S', metavar='', dest='database', help='database to write results to') parser.add_argument('--commit', metavar='', @@ -153,8 +150,6 @@ def main(): if args.loglevel == logging.WARNING: print_res = True - error_file = args.errorfile and os.path.join(args.logdir, args.errorfile) - if args.database: import sqlite3 conn = sqlite3.connect(args.database) @@ -316,10 +311,6 @@ def main(): logger.info("passed " + str(len(passed)) + " test case(s)") logger.info("skipped " + str(len(skipped)) + " test case(s)") logger.info("failed tests: " + str(failed)) - if error_file: - f = open(error_file, 'w') - f.write(str(failed) + '\n') - f.close() sys.exit(1) logger.info("passed all " + str(len(passed)) + " test case(s)") if len(skipped):