]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Remove separate error/failed text file
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 31 Oct 2013 12:39:09 +0000 (14:39 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 31 Oct 2013 12:39:09 +0000 (14:39 +0200)
The new sqlite database for results deprecated this.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

tests/hwsim/run-all.sh
tests/hwsim/run-tests.py

index bd894a1e8f10e86af4f1453fe8d441705994d833..84b5baefe94c2264c804c35d78ff55b4f228e6ae 100755 (executable)
@@ -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
 
index 240b19082c2254ce6804581395f321a5f9f765ad..5b2f884bfbcb196035391fee82ca8e83e1add08f 100755 (executable)
@@ -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="<filename>", dest='errorfile',
-                        nargs='?', const="failed",
-                        help='error filename (in log directory)')
     parser.add_argument('-S', metavar='<sqlite3 db>', dest='database',
                         help='database to write results to')
     parser.add_argument('--commit', metavar='<commit id>',
@@ -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):