aboutsummaryrefslogtreecommitdiffstats
path: root/travis/nasm-t.py
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-24 17:06:57 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-24 17:06:57 +0300
commit85261a2b5790d31322eb4ea8228218dc0ad53374 (patch)
treeb90dbee449fa32489e577f381ad8de8eee58788c /travis/nasm-t.py
parentf6b1720a2d11af83c659e41d988f472f041b0088 (diff)
downloadnasm-85261a2b5790d31322eb4ea8228218dc0ad53374.tar.gz
nasm-85261a2b5790d31322eb4ea8228218dc0ad53374.tar.xz
nasm-85261a2b5790d31322eb4ea8228218dc0ad53374.zip
test: Use NASM_TEST_RUN environment
To placate false positives in outputs which writes nasm comment an signature into binary form. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/nasm-t.py')
-rwxr-xr-xtravis/nasm-t.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/travis/nasm-t.py b/travis/nasm-t.py
index e925a6ea..7c37bde8 100755
--- a/travis/nasm-t.py
+++ b/travis/nasm-t.py
@@ -277,17 +277,17 @@ def exec_nasm(desc):
print("\tProcessing %s" % (desc['_test-name']))
opts = [args.nasm] + prepare_run_opts(desc)
+ nasm_env = os.environ.copy()
+ nasm_env['NASM_TEST_RUN'] = 'y'
+
desc_env = desc.get('environ')
if desc_env:
- nasm_env = os.environ.copy()
for i in desc_env:
v = i.split('=')
if len(v) == 2:
nasm_env[v[0]] = v[1]
else:
nasm_env[v[0]] = None
- else:
- nasm_env = None
print("\tExecuting %s" % (" ".join(opts)))
pnasm = subprocess.Popen(opts,