aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-09-06 20:02:53 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-09-06 20:02:53 +0300
commit463600ac229c71ef9a4075d960cab8dfd031bab0 (patch)
tree3a5f6bb6c5f73c22a8f3d1bf30c5f6d3793ac05b /travis
parentff96ae3ffb391fd75c4737a17461f8bb36d7e915 (diff)
downloadnasm-463600ac229c71ef9a4075d960cab8dfd031bab0.tar.gz
nasm-463600ac229c71ef9a4075d960cab8dfd031bab0.tar.xz
nasm-463600ac229c71ef9a4075d960cab8dfd031bab0.zip
travis: nasm-t -- fix --error option
Write "expected" or "over" if requested. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rwxr-xr-xtravis/nasm-t.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/travis/nasm-t.py b/travis/nasm-t.py
index 2470ad45..adcdbab9 100755
--- a/travis/nasm-t.py
+++ b/travis/nasm-t.py
@@ -63,7 +63,7 @@ for cmd in ['new']:
required = False)
spp.add_argument('--error',
dest = 'error',
- help = 'Set to "y" if test is supposed to fail',
+ help = '"y" if test is supposed to fail or "i" to ignore',
required = False)
spp.add_argument('--output',
dest = 'output', default = 'y',
@@ -500,7 +500,9 @@ if args.cmd == 'new':
if args.ref:
acc.append("\t\t\"ref\": \"{}\"".format(args.ref))
if args.error == 'y':
- acc.append("\t\t\"error\": \"true\"")
+ acc.append("\t\t\"error\": \"expected\"")
+ elif args.error == 'i':
+ acc.append("\t\t\"error\": \"over\"")
f.write(",\n".join(acc).encode("utf-8"))
if args.output or args.stdout or args.stderr:
acc = []