summaryrefslogtreecommitdiff
path: root/test/no-arguments.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-02-05 22:06:52 +0000
committerSteven Knight <knight@baldmt.com>2003-02-05 22:06:52 +0000
commit1321ef0af677827deb274d698d06ffa8b73010b0 (patch)
tree12db09379f94382c56b55b9050e5e59950344867 /test/no-arguments.py
parent15e31b8bda9f093971af3c3b0136b043ebb02746 (diff)
downloadscons-1321ef0af677827deb274d698d06ffa8b73010b0.tar.gz
Change the default behavior when no arguments are specified to building everything in (or below) the current directory.
Diffstat (limited to 'test/no-arguments.py')
-rw-r--r--test/no-arguments.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/no-arguments.py b/test/no-arguments.py
index acd590ac..602ef802 100644
--- a/test/no-arguments.py
+++ b/test/no-arguments.py
@@ -24,6 +24,12 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+"""
+Verify that we use a default target of the current directory when there
+are no command-line arguments (and, implicitly, no Default() in the
+SConstruct).
+"""
+
import os.path
import TestSCons
@@ -47,13 +53,9 @@ env.Build('aaa.out', 'aaa.in')
test.write('aaa.in', "aaa.in\n")
#
-test.run(arguments = '.')
+test.run()
test.fail_test(test.read('aaa.out') != "aaa.in\n")
#
-test.run(status = 2, stderr =
-"scons: *** No targets specified and no Default() targets found. Stop.\n")
-
-#
test.pass_test()