diff options
author | Steven Knight <knight@baldmt.com> | 2004-09-16 17:03:17 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-09-16 17:03:17 (GMT) |
commit | 205bce15b461669f84830ec57ca19c7377f2a528 (patch) | |
tree | c3e40156597813b9048d893b86372a48cb4c28e9 /test/Options.py | |
parent | a5a4fd46d7908d5f81ec81fdb304a0f0f8b9facc (diff) | |
download | SCons-205bce15b461669f84830ec57ca19c7377f2a528.zip SCons-205bce15b461669f84830ec57ca19c7377f2a528.tar.gz SCons-205bce15b461669f84830ec57ca19c7377f2a528.tar.bz2 |
Guarantee ListOption persistence. (Elliot Murphy)
Diffstat (limited to 'test/Options.py')
-rw-r--r-- | test/Options.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Options.py b/test/Options.py index d9bfd17..ecd9aa4 100644 --- a/test/Options.py +++ b/test/Options.py @@ -245,10 +245,16 @@ opts.Add('DEBUG_BUILD', opts.Add('UNSPECIFIED', 'An option with no value') +opts.Add('LISTOPTION_TEST', + 'testing list option persistence', + 'none', + names = ['a','b','c',]) + env = Environment(options = opts) print env['RELEASE_BUILD'] print env['DEBUG_BUILD'] +print env['LISTOPTION_TEST'] opts.Save('options.saved', env) """) @@ -264,9 +270,9 @@ check(['0','1']) checkSave('options.saved', {}) # Now specify same option non-default and make sure only it is written out -test.run(arguments='"DEBUG_BUILD=0"') +test.run(arguments='"DEBUG_BUILD=0" "LISTOPTION_TEST=a,b"') check(['0','0']) -checkSave('options.saved',{'DEBUG_BUILD':0}) +checkSave('options.saved',{'DEBUG_BUILD':0, 'LISTOPTION_TEST':'a,b'}) test.write('SConstruct', """ opts = Options('custom.py') |