[nasm:nasm-2.15.xx-travis] travis: nasm-t -- add ability to specify error

nasm-bot for Cyrill Gorcunov gorcunov at gmail.com
Tue Aug 25 09:57:05 PDT 2020


Commit-ID:  512c93dc42ebba2f1ebcb74f35f24e9792bd1ad6
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=512c93dc42ebba2f1ebcb74f35f24e9792bd1ad6
Author:     Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Tue, 25 Aug 2020 19:11:52 +0300
Committer:  Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Tue, 25 Aug 2020 19:11:52 +0300

travis: nasm-t -- add ability to specify error

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>


---
 travis/nasm-t.py | 6 ++++++
 1 file changed, 6 insertions(+)

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 = []


More information about the Nasm-commits mailing list