Windows portability (path names in expected output).
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 22 Sep 2008 15:38:47 +0000 (15:38 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 22 Sep 2008 15:38:47 +0000 (15:38 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3451 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/SConsignFile/make-directory.py

index 819b5e2125f6cc6411424aae6ba1cba85c521421..46f4da0fbbcf633a1f0b7af626dff5654225b731 100644 (file)
@@ -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)