Skip to content

Commit 463600a

Browse files
committed
travis: nasm-t -- fix --error option
Write "expected" or "over" if requested. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
1 parent ff96ae3 commit 463600a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

travis/nasm-t.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
required = False)
6464
spp.add_argument('--error',
6565
dest = 'error',
66-
help = 'Set to "y" if test is supposed to fail',
66+
help = '"y" if test is supposed to fail or "i" to ignore',
6767
required = False)
6868
spp.add_argument('--output',
6969
dest = 'output', default = 'y',
@@ -500,7 +500,9 @@ def test_update(desc):
500500
if args.ref:
501501
acc.append("\t\t\"ref\": \"{}\"".format(args.ref))
502502
if args.error == 'y':
503-
acc.append("\t\t\"error\": \"true\"")
503+
acc.append("\t\t\"error\": \"expected\"")
504+
elif args.error == 'i':
505+
acc.append("\t\t\"error\": \"over\"")
504506
f.write(",\n".join(acc).encode("utf-8"))
505507
if args.output or args.stdout or args.stderr:
506508
acc = []

0 commit comments

Comments
 (0)