Commit 5f07dce9 authored by Daniel Salzman's avatar Daniel Salzman

tests-extra: do not create failed.log if success

parent 31392b44
......@@ -55,9 +55,9 @@
/src/knot/conf/libknotd_la-cf-lex.c
/src/knot/conf/libknotd_la-cf-parse.c
/src/knot/conf/libknotd_la-cf-parse.h
/src/zscanner/scanner.c
# zscanner
/src/zscanner/scanner.c
/src/zscanner/tests/tmp/
/src/zscanner/tests/unittests
/src/zscanner/tests/zscanner-tool
......@@ -71,7 +71,7 @@
/src/knsec3hash
*.gcda
*.gcno
/*-coverage.info
/*.info
/*coverage/
# alternative allocators
......
......@@ -204,9 +204,9 @@ def main(args):
msg_skips = ", SKIPPED: %i" % skip_cnt if skip_cnt > 0 else ""
msg_res = ", FAILED: %i" % fail_cnt if fail_cnt > 0 else ", SUCCESS"
log.info(msg_cases + msg_skips + msg_res)
log_failed(outs_dir, "Total %i/%i" % (fail_cnt, case_cnt), indent=False)
if fail_cnt:
log_failed(outs_dir, "Total %i/%i" % (fail_cnt, case_cnt), indent=False)
sys.exit(1)
else:
sys.exit(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment