summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-11 12:51:06 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-11 12:51:06 +0100
commit4fb3f11a4bb1d5bdc8a51310c854fdae00a71356 (patch)
treebcdecae83e045c91c4f3821bb939bc2812392358
parent378363cea6eb340f18519c0d3ac9289c5576c38b (diff)
downloadhaskell-4fb3f11a4bb1d5bdc8a51310c854fdae00a71356.tar.gz
Copy the flag lists before altering them
They are mutable values, so altering them affects other tests too
-rw-r--r--testsuite/driver/testlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 74b8b66c6c..58e2534ed1 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1148,7 +1148,7 @@ def simple_build( name, way, extra_hc_opts, should_fail, top_mod, link, addsuf,
else:
cmd_prefix = getTestOpts().compile_cmd_prefix + ' '
- comp_flags = getTestOpts().compiler_always_flags
+ comp_flags = copy.copy(getTestOpts().compiler_always_flags)
if noforce:
comp_flags = filter(lambda f: f != '-fforce-recomp', comp_flags)
if getTestOpts().outputdir != None:
@@ -1337,7 +1337,7 @@ def interpreter_run( name, way, extra_hc_opts, compile_only, top_mod ):
script.close()
- flags = getTestOpts().compiler_always_flags
+ flags = copy.copy(getTestOpts().compiler_always_flags)
if getTestOpts().outputdir != None:
flags.extend(["-outputdir", getTestOpts().outputdir])
@@ -1434,7 +1434,7 @@ def extcore_run( name, way, extra_hc_opts, compile_only, top_mod ):
else:
to_do = ' --make ' + top_mod + ' '
- flags = getTestOpts().compiler_always_flags
+ flags = copy.copy(getTestOpts().compiler_always_flags)
if getTestOpts().outputdir != None:
flags.extend(["-outputdir", getTestOpts().outputdir])
cmd = 'cd ' + getTestOpts().testdir + " && '" \