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:
parent
904b6e7e75
commit
a1ddc79adf
2 changed files with 1 additions and 10 deletions
|
@ -63,7 +63,7 @@ if ! ./start.sh $CONCURRENT $VALGRIND $TRACE; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
./stop-wifi.sh
|
||||||
|
|
||||||
|
|
|
@ -104,9 +104,6 @@ def main():
|
||||||
group.add_argument('-l', action='store_true', dest='logfile',
|
group.add_argument('-l', action='store_true', dest='logfile',
|
||||||
help='store debug log to a file (in log directory)')
|
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',
|
parser.add_argument('-S', metavar='<sqlite3 db>', dest='database',
|
||||||
help='database to write results to')
|
help='database to write results to')
|
||||||
parser.add_argument('--commit', metavar='<commit id>',
|
parser.add_argument('--commit', metavar='<commit id>',
|
||||||
|
@ -153,8 +150,6 @@ def main():
|
||||||
if args.loglevel == logging.WARNING:
|
if args.loglevel == logging.WARNING:
|
||||||
print_res = True
|
print_res = True
|
||||||
|
|
||||||
error_file = args.errorfile and os.path.join(args.logdir, args.errorfile)
|
|
||||||
|
|
||||||
if args.database:
|
if args.database:
|
||||||
import sqlite3
|
import sqlite3
|
||||||
conn = sqlite3.connect(args.database)
|
conn = sqlite3.connect(args.database)
|
||||||
|
@ -316,10 +311,6 @@ def main():
|
||||||
logger.info("passed " + str(len(passed)) + " test case(s)")
|
logger.info("passed " + str(len(passed)) + " test case(s)")
|
||||||
logger.info("skipped " + str(len(skipped)) + " test case(s)")
|
logger.info("skipped " + str(len(skipped)) + " test case(s)")
|
||||||
logger.info("failed tests: " + str(failed))
|
logger.info("failed tests: " + str(failed))
|
||||||
if error_file:
|
|
||||||
f = open(error_file, 'w')
|
|
||||||
f.write(str(failed) + '\n')
|
|
||||||
f.close()
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
logger.info("passed all " + str(len(passed)) + " test case(s)")
|
logger.info("passed all " + str(len(passed)) + " test case(s)")
|
||||||
if len(skipped):
|
if len(skipped):
|
||||||
|
|
Loading…
Reference in a new issue