diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-05-21 06:06:27 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-05-21 06:06:27 (GMT) |
commit | 935e698566833e2c50898f39f565414404c68cbd (patch) | |
tree | 140962ae0b8ebef170e83e21092fec4f510e91d4 /test/Deprecated/SourceSignatures/switch-rebuild.py | |
parent | b040d94fad9024d5715d22cdc071384e827696b2 (diff) | |
download | SCons-935e698566833e2c50898f39f565414404c68cbd.zip SCons-935e698566833e2c50898f39f565414404c68cbd.tar.gz SCons-935e698566833e2c50898f39f565414404c68cbd.tar.bz2 |
Update deprecated features to the next life-cycle stage
Diffstat (limited to 'test/Deprecated/SourceSignatures/switch-rebuild.py')
-rw-r--r-- | test/Deprecated/SourceSignatures/switch-rebuild.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/Deprecated/SourceSignatures/switch-rebuild.py b/test/Deprecated/SourceSignatures/switch-rebuild.py index c8e64e3..70ebfbe 100644 --- a/test/Deprecated/SourceSignatures/switch-rebuild.py +++ b/test/Deprecated/SourceSignatures/switch-rebuild.py @@ -34,9 +34,14 @@ import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) +expect = TestSCons.re_escape(""" +scons: warning: The env.SourceSignatures() method is deprecated; +\tconvert your build to use the env.Decider() method instead. +""") + TestSCons.file_expr + TestSCons.deprecated_python_expr + base_sconstruct_contents = """\ -SetOption('warn', 'no-deprecated-source-signatures') +SetOption('warn', 'deprecated-source-signatures') SourceSignatures('%s') def build(env, target, source): @@ -59,30 +64,26 @@ switch_out_switch_in = re.escape(test.wrap_stdout('build(["switch.out"], ["switc test.run(arguments = 'switch.out', stdout = switch_out_switch_in, - stderr = TestSCons.deprecated_python_expr) + stderr = expect) test.up_to_date(arguments = 'switch.out', stderr = None) - write_SConstruct(test, 'timestamp') test.up_to_date(arguments = 'switch.out', stderr = None) - write_SConstruct(test, 'MD5') test.not_up_to_date(arguments = 'switch.out', stderr = None) - test.write('switch.in', "switch.in 2\n") test.run(arguments = 'switch.out', stdout = switch_out_switch_in, - stderr = TestSCons.deprecated_python_expr) - + stderr = expect) test.pass_test() |