[nasm:nasm-2.15.xx] travis: nasm-t -- fix --error option
nasm-bot for Cyrill Gorcunov
gorcunov at gmail.com
Mon Sep 7 01:03:05 PDT 2020
Commit-ID: 463600ac229c71ef9a4075d960cab8dfd031bab0
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=463600ac229c71ef9a4075d960cab8dfd031bab0
Author: Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Sun, 6 Sep 2020 20:02:53 +0300
Committer: Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Sun, 6 Sep 2020 20:02:53 +0300
travis: nasm-t -- fix --error option
Write "expected" or "over" if requested.
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
travis/nasm-t.py | 6 ++++--
1 file 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 = []
More information about the Nasm-commits
mailing list