1
1
mirror of https://github.com/kanaka/mal.git synced 2024-10-26 14:22:25 +03:00

runtest/travis: make soft mode the default.

Switch runtest.py option to --hard instead of --soft. This changes
tests marked as soft into a hard fail tests.
This commit is contained in:
Joel Martin 2015-11-09 21:16:38 -06:00
parent 595376919b
commit f3ea3be300
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ else
MAKE="docker run -it -u $(id -u) -v `pwd`:/mal kanaka/mal-test-${img_impl} make"
fi
${MAKE} TEST_OPTS="--soft --debug-file ../${ACTION}.err" \
${MAKE} TEST_OPTS="--debug-file ../${ACTION}.err" \
MAL_IMPL=${MAL_IMPL} ${ACTION}^${IMPL}
# no failure so remove error log

View File

@ -49,8 +49,8 @@ parser.add_argument('--log-file', type=str,
help="Write messages to the named file in addition the screen")
parser.add_argument('--debug-file', type=str,
help="Write all test interaction the named file")
parser.add_argument('--soft', action='store_true',
help="Report but do not fail tests after ';>>> soft=True'")
parser.add_argument('--hard', action='store_true',
help="Turn soft tests following a ';>>> soft=True' into hard failures")
parser.add_argument('test_file', type=argparse.FileType('r'),
help="a test file formatted as with mal test data")
@ -252,7 +252,7 @@ while t.next():
log(" -> SUCCESS")
pass_cnt += 1
else:
if args.soft and t.soft:
if t.soft and not args.hard:
log(" -> SOFT FAIL (line %d):" % t.line_num)
soft_fail_cnt += 1
else: