summaryrefslogtreecommitdiffstats
path: root/test/option--C.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-16 04:22:19 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-16 04:22:19 (GMT)
commite88681240924e70ec12abaf3664290a69db6dcfd (patch)
tree136311c7b231f8d467156a9ae4a9d53428f364fc /test/option--C.py
parentfcd916513a1ad10e13479d4d604f239f7ea45c73 (diff)
downloadSCons-e88681240924e70ec12abaf3664290a69db6dcfd.zip
SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.gz
SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.bz2
Add more information error reporting from tests.
Diffstat (limited to 'test/option--C.py')
-rw-r--r--test/option--C.py29
1 files changed, 9 insertions, 20 deletions
diff --git a/test/option--C.py b/test/option--C.py
index 7b3bc27..8af879a 100644
--- a/test/option--C.py
+++ b/test/option--C.py
@@ -29,30 +29,19 @@ import os
print "sub/dir/SConstruct", os.getcwd()
""")
-test.run(arguments = '-C sub')
+test.run(arguments = '-C sub',
+ stdout = "sub/SConstruct %s\n" % wpath_sub)
-test.fail_test(test.stdout() != "sub/SConstruct %s\n" % wpath_sub)
-test.fail_test(test.stderr() != "")
+test.run(arguments = '-C sub -C dir',
+ stdout = "sub/dir/SConstruct %s\n" % wpath_sub_dir)
-test.run(arguments = '-C sub -C dir')
+test.run(stdout = "SConstruct %s\n" % wpath)
-test.fail_test(test.stdout() != "sub/dir/SConstruct %s\n" % wpath_sub_dir)
-test.fail_test(test.stderr() != "")
+test.run(arguments = '--directory=sub/dir',
+ stdout = "sub/dir/SConstruct %s\n" % wpath_sub_dir)
-test.run(chdir = '.')
-
-test.fail_test(test.stdout() != "SConstruct %s\n" % wpath)
-test.fail_test(test.stderr() != "")
-
-test.run(arguments = '--directory=sub/dir')
-
-test.fail_test(test.stdout() != "sub/dir/SConstruct %s\n" % wpath_sub_dir)
-test.fail_test(test.stderr() != "")
-
-test.run(arguments = '-C %s -C %s' % (wpath_sub_dir, wpath_sub))
-
-test.fail_test(test.stdout() != "sub/SConstruct %s\n" % wpath_sub)
-test.fail_test(test.stderr() != "")
+test.run(arguments = '-C %s -C %s' % (wpath_sub_dir, wpath_sub),
+ stdout = "sub/SConstruct %s\n" % wpath_sub)
test.pass_test()