diff options
author | Steven Knight <knight@baldmt.com> | 2003-05-31 10:47:37 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-05-31 10:47:37 (GMT) |
commit | 22ed0f721c935d4e5c3c7651d633c047bc98e19a (patch) | |
tree | e2420907a12f3bf202d5cae0911340471d514c36 /test/option-n.py | |
parent | f846b8807f30e0201a7d6173ab47086370232e2e (diff) | |
download | SCons-22ed0f721c935d4e5c3c7651d633c047bc98e19a.zip SCons-22ed0f721c935d4e5c3c7651d633c047bc98e19a.tar.gz SCons-22ed0f721c935d4e5c3c7651d633c047bc98e19a.tar.bz2 |
Don't update the .sconsign files when using -n. (Steve Leblanc)
Diffstat (limited to 'test/option-n.py')
-rw-r--r-- | test/option-n.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/option-n.py b/test/option-n.py index b71648d..bccb785 100644 --- a/test/option-n.py +++ b/test/option-n.py @@ -109,7 +109,15 @@ test.fail_test(os.path.exists(test.workpath('f2.out'))) test.run(arguments = args) test.fail_test(not os.path.exists(test.workpath('f1.out'))) -test.fail_test(not os.path.exists(test.workpath('f2.out'))) + +# Test that SCons does not write a modified .sconsign when -n is used. +expect = test.wrap_stdout("""\ +%s build.py f1.out +""" % python) +test.unlink('.sconsign') +test.write('f1.out', "X1.out\n") +test.run(arguments = '-n f1.out', stdout = expect) +test.run(arguments = '-n f1.out', stdout = expect) def wrap_clean_stdout(string): return "scons: Reading SConscript files ...\n" + \ |