diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2020-09-06 20:02:53 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2020-09-06 20:02:53 +0300 |
commit | 463600ac229c71ef9a4075d960cab8dfd031bab0 (patch) | |
tree | 3a5f6bb6c5f73c22a8f3d1bf30c5f6d3793ac05b | |
parent | ff96ae3ffb391fd75c4737a17461f8bb36d7e915 (diff) | |
download | nasm-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>
-rwxr-xr-x | travis/nasm-t.py | 6 |
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 = [] |