summaryrefslogtreecommitdiff
path: root/test/AS
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-24 04:29:36 -0400
committerWilliam Blevins <wblevins001@gmail.com>2016-09-24 04:29:36 -0400
commitc4c2ba91c671527828fbc6ffb79421d5e487a398 (patch)
treec6fa3299dd54d4764e6e3d4225b7d32d0bc17395 /test/AS
parent9e87609dfac0fd6a87d2cdc0a9e4e8b5c0a6a99a (diff)
downloadscons-git-c4c2ba91c671527828fbc6ffb79421d5e487a398.tar.gz
Updating tests to use fixture wrapper.py.
Diffstat (limited to 'test/AS')
-rw-r--r--test/AS/ml.py7
-rw-r--r--test/AS/nasm.py7
2 files changed, 2 insertions, 12 deletions
diff --git a/test/AS/ml.py b/test/AS/ml.py
index c377172d1..0506f5f04 100644
--- a/test/AS/ml.py
+++ b/test/AS/ml.py
@@ -45,12 +45,7 @@ ml = test.where_is('ml')
if not ml:
test.skip_test("ml not found; skipping test\n")
-test.write("wrapper.py",
-"""import os
-import sys
-open('%s', 'wb').write(b"wrapper.py\\n")
-os.system(" ".join(sys.argv[1:]))
-""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
+test.file_fixture('wrapper.py')
test.write('SConstruct', """
import os
diff --git a/test/AS/nasm.py b/test/AS/nasm.py
index 551a5ab55..b436a75ed 100644
--- a/test/AS/nasm.py
+++ b/test/AS/nasm.py
@@ -74,12 +74,7 @@ for k, v in list(format_map.items()):
nasm_format = v
break
-test.write("wrapper.py",
-"""import os
-import sys
-open('%s', 'wb').write("wrapper.py\\n")
-os.system(" ".join(sys.argv[1:]))
-""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
+test.file_fixture('wrapper.py')
test.write('SConstruct', """
eee = Environment(tools = ['gcc', 'gnulink', 'nasm'],