summaryrefslogtreecommitdiff
path: root/test/VariantDir
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-21 15:13:26 +0000
committerGreg Noel <GregNoel@tigris.org>2010-04-21 15:13:26 +0000
commit237b88a5c911997f047d17780796b995476c0eab (patch)
treeed317ae6759a0bb9ba2e8a20a93a5f2b6981c876 /test/VariantDir
parent000e16d5d8d90971d76022e6d4d8e7cd9055363a (diff)
downloadscons-237b88a5c911997f047d17780796b995476c0eab.tar.gz
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Pass the python executable from the -P option to runtest to TestCmd.py. Create the escaped executable name in TestCmd.py as well. Pass those two values into derived test modules. Fix cascade problems in test scripts due to incorrect assumptions about the name of the executable.
Diffstat (limited to 'test/VariantDir')
-rw-r--r--test/VariantDir/reflect.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/VariantDir/reflect.py b/test/VariantDir/reflect.py
index 51a1bc8a..e7ff6db9 100644
--- a/test/VariantDir/reflect.py
+++ b/test/VariantDir/reflect.py
@@ -90,9 +90,9 @@ INC_CNI = re.escape(os.path.join('INC_dir1', 'dir2', 'dir1', 'dir2_CNI'))
# The .+ after mycc\\.py below handles /nologo flags from Visual C/C++.
expect = test.wrap_stdout("""\
scons: building associated VariantDir targets: %(targets)s
-"%(re_python)s" mycc\\.py.* %(INC_CNI)s.*
+%(re_python)s mycc\\.py.* %(INC_CNI)s.*
Compile
-"%(re_python)s" mylink\\.py .+
+%(re_python)s mylink\\.py .+
Link
""" % locals())
@@ -120,9 +120,9 @@ INC_CNI = re.escape(os.path.join('INC_dir1', 'dir2_CNI'))
test.run(arguments = '',
stdout=test.wrap_stdout("""\
scons: building associated VariantDir targets: %(targets)s
-"%(re_python)s" mycc\\.py.* %(INC_CNI)s.*
+%(re_python)s mycc\\.py.* %(INC_CNI)s.*
Compile
-"%(re_python)s" mylink\\.py .+
+%(re_python)s mylink\\.py .+
Link
""" % locals()),
match=TestSCons.match_re,