summaryrefslogtreecommitdiffstats
path: root/test/Options.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-06-18 05:44:54 (GMT)
committerSteven Knight <knight@baldmt.com>2003-06-18 05:44:54 (GMT)
commitb61917920644e58ab48cad87dabc19f9db6f0a64 (patch)
treed2b2b9569ec63340142c724ce17e8e35a1477394 /test/Options.py
parentdee58bfc0ca86f020b3d5c65b66d3d939828e244 (diff)
downloadSCons-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.py10
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')