aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 19:11:52 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 19:11:52 +0300
commit512c93dc42ebba2f1ebcb74f35f24e9792bd1ad6 (patch)
tree7edb6853db711c06ff1f7e1f9554c1b18285ec06 /travis
parent09f819dc6f62b59ca7404b6745ed429c8ebcb1a5 (diff)
downloadnasm-512c93dc42ebba2f1ebcb74f35f24e9792bd1ad6.tar.gz
nasm-512c93dc42ebba2f1ebcb74f35f24e9792bd1ad6.tar.xz
nasm-512c93dc42ebba2f1ebcb74f35f24e9792bd1ad6.zip
travis: nasm-t -- add ability to specify error
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rwxr-xr-xtravis/nasm-t.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/travis/nasm-t.py b/travis/nasm-t.py
index 8907692e..02b145db 100755
--- a/travis/nasm-t.py
+++ b/travis/nasm-t.py
@@ -61,6 +61,10 @@ for cmd in ['new']:
dest = 'ref',
help = 'Test reference',
required = False)
+ spp.add_argument('--error',
+ dest = 'error',
+ help = 'Set to "y" if test is supposed to fail',
+ required = False)
spp.add_argument('--output',
dest = 'output', default = 'y',
help = 'Output (compiled) file name (or "y")',
@@ -495,6 +499,8 @@ if args.cmd == 'new':
acc.append("\t\t\"option\": \"{}\"".format(args.option))
if args.ref:
acc.append("\t\t\"ref\": \"{}\"".format(args.ref))
+ if args.error == 'y':
+ acc.append("\t\t\"error\": \"true\"")
f.write(",\n".join(acc).encode("utf-8"))
if args.output or args.stdout or args.stderr:
acc = []