tests: Remove separate error/failed text file

The new sqlite database for results deprecated this.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2013-10-31 14:39:09 +02:00 committed by Jouni Malinen
parent 904b6e7e75
commit a1ddc79adf
2 changed files with 1 additions and 10 deletions

View file

@ -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

View file

@ -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):