diff options
author | Steven Knight <knight@baldmt.com> | 2008-09-22 15:38:47 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2008-09-22 15:38:47 (GMT) |
commit | 17672e58d985d0bafb7052a4d4d3d0dd1c728cc2 (patch) | |
tree | d3a893b2dadc5cecc1bff5310d877b670f7122b8 /test/SConsignFile | |
parent | 7b22bf41a40803f774836d3ba589f7952caf7461 (diff) | |
download | SCons-17672e58d985d0bafb7052a4d4d3d0dd1c728cc2.zip SCons-17672e58d985d0bafb7052a4d4d3d0dd1c728cc2.tar.gz SCons-17672e58d985d0bafb7052a4d4d3d0dd1c728cc2.tar.bz2 |
Windows portability (path names in expected output).
Diffstat (limited to 'test/SConsignFile')
-rw-r--r-- | test/SConsignFile/make-directory.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/SConsignFile/make-directory.py b/test/SConsignFile/make-directory.py index 819b5e2..46f4da0 100644 --- a/test/SConsignFile/make-directory.py +++ b/test/SConsignFile/make-directory.py @@ -29,10 +29,15 @@ Verify the ability to make a SConsignFile() in a non-existent subdirectory. """ +import os + import TestSCons test = TestSCons.TestSCons() +sub_dir = os.path.join('sub', 'dir') +bar_foo_txt = os.path.join('bar', 'foo.txt') + test.write('SConstruct', """ import SCons.dblite env = Environment() @@ -42,8 +47,8 @@ env.Install('bar', 'foo.txt') test.write('foo.txt', "Foo\n") -expect = test.wrap_stdout(read_str = 'Mkdir("sub/dir")\n', - build_str = 'Install file: "foo.txt" as "bar/foo.txt"\n') +expect = test.wrap_stdout(read_str = 'Mkdir("%s")\n' % sub_dir, + build_str = 'Install file: "foo.txt" as "%s"\n' % bar_foo_txt) test.run(options='-n', stdout=expect) |