diff options
author | Steven Knight <knight@baldmt.com> | 2009-01-27 13:42:49 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-01-27 13:42:49 (GMT) |
commit | e277a83e90407e179852bc84f9ca3a5dcfd00bab (patch) | |
tree | 5dfb7f589db0955bd41bcb4eff04b8ff4b7305c1 /test/sconsign/script/no-SConsignFile.py | |
parent | 63e148fc7aae07d15733b7470f648c7377e66402 (diff) | |
download | SCons-e277a83e90407e179852bc84f9ca3a5dcfd00bab.zip SCons-e277a83e90407e179852bc84f9ca3a5dcfd00bab.tar.gz SCons-e277a83e90407e179852bc84f9ca3a5dcfd00bab.tar.bz2 |
Handle executing tests in a directory whose path contains spaces,
or with a Python in a path that contains spaces, by refactoring
(again) how we execute the internal scripts.
Diffstat (limited to 'test/sconsign/script/no-SConsignFile.py')
-rw-r--r-- | test/sconsign/script/no-SConsignFile.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/sconsign/script/no-SConsignFile.py b/test/sconsign/script/no-SConsignFile.py index dacc011..9b819b9 100644 --- a/test/sconsign/script/no-SConsignFile.py +++ b/test/sconsign/script/no-SConsignFile.py @@ -113,8 +113,11 @@ test.write(['SConstruct'], """ SConsignFile(None) env1 = Environment(PROGSUFFIX = '.exe', OBJSUFFIX = '.obj', - CCCOM = r'%(fake_cc_py)s sub2 $TARGET $SOURCE', - LINKCOM = r'%(fake_link_py)s $TARGET $SOURCE') + # Specify the command lines with lists-of-lists so + # finding the implicit dependencies works even with + # spaces in the fake_*_py path names. + CCCOM = [[r'%(fake_cc_py)s', 'sub2', '$TARGET', '$SOURCE']], + LINKCOM = [[r'%(fake_link_py)s', '$TARGET', '$SOURCE']]) env1.PrependENVPath('PATHEXT', '.PY') env1.Program('sub1/hello.c') env2 = env1.Clone(CPPPATH = ['sub2']) @@ -155,8 +158,6 @@ hello.obj: %(sig_re)s \d+ \d+ """ % locals() test.run_sconsign(arguments = "sub1/.sconsign", stdout=expect) -#test.run_sconsign(arguments = "sub1/.sconsign") -#print test.stdout() test.run_sconsign(arguments = "--raw sub1/.sconsign", stdout = r"""hello.c: {'csig': '%(sig_re)s', 'timestamp': \d+, 'size': \d+L?, '_version_id': 1} |