diff options
author | Steven Knight <knight@baldmt.com> | 2003-06-18 05:44:54 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-06-18 05:44:54 (GMT) |
commit | b61917920644e58ab48cad87dabc19f9db6f0a64 (patch) | |
tree | d2b2b9569ec63340142c724ce17e8e35a1477394 /test/Options.py | |
parent | dee58bfc0ca86f020b3d5c65b66d3d939828e244 (diff) | |
download | SCons-b61917920644e58ab48cad87dabc19f9db6f0a64.zip SCons-b61917920644e58ab48cad87dabc19f9db6f0a64.tar.gz SCons-b61917920644e58ab48cad87dabc19f9db6f0a64.tar.bz2 |
Options fixes. (Charles Crain)
Diffstat (limited to 'test/Options.py')
-rw-r--r-- | test/Options.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Options.py b/test/Options.py index b142db9..0e21aa9 100644 --- a/test/Options.py +++ b/test/Options.py @@ -198,23 +198,23 @@ def checkSave(file, expected): gdict = {} ldict = {} execfile(file, gdict, ldict) - assert expected == ldict + assert expected == ldict, "%s\n...not equal to...\n%s" % (expected, ldict) # First test with no command line options # This should just leave the custom.py settings test.run() check(['1','0']) -checkSave('options.saved', { 'RELEASE_BUILD':'1', 'DEBUG_BUILD':'0'}) +checkSave('options.saved', { 'RELEASE_BUILD':1, 'DEBUG_BUILD':0}) # Override with command line arguments test.run(arguments='"DEBUG_BUILD=3"') check(['1','3']) -checkSave('options.saved', {'RELEASE_BUILD':'1', 'DEBUG_BUILD':'3'}) +checkSave('options.saved', {'RELEASE_BUILD':1, 'DEBUG_BUILD':3}) # Now make sure that saved options are overridding the custom.py test.run() check(['1','3']) -checkSave('options.saved', {'DEBUG_BUILD':'3', 'RELEASE_BUILD':'1'}) +checkSave('options.saved', {'DEBUG_BUILD':3, 'RELEASE_BUILD':1}) # Load no options from file(s) # Used to test for correct output in save option file @@ -256,7 +256,7 @@ checkSave('options.saved', {}) # Now specify same option non-default and make sure only it is written out test.run(arguments='"DEBUG_BUILD=0"') check(['0','0']) -checkSave('options.saved',{'DEBUG_BUILD':'0'}) +checkSave('options.saved',{'DEBUG_BUILD':0}) test.write('SConstruct', """ opts = Options('custom.py') |