summaryrefslogtreecommitdiff
path: root/test/SConsignFile
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-09-22 15:38:47 +0000
committerSteven Knight <knight@baldmt.com>2008-09-22 15:38:47 +0000
commit964c701a61ecc736b4e948ee318be8cb9687d613 (patch)
treed3a893b2dadc5cecc1bff5310d877b670f7122b8 /test/SConsignFile
parentd08d9c2148a503c827394da0094a9e8362f18803 (diff)
downloadscons-964c701a61ecc736b4e948ee318be8cb9687d613.tar.gz
Windows portability (path names in expected output).
Diffstat (limited to 'test/SConsignFile')
-rw-r--r--test/SConsignFile/make-directory.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/SConsignFile/make-directory.py b/test/SConsignFile/make-directory.py
index 819b5e21..46f4da0f 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)