diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-01-13 21:36:05 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-01-13 21:36:05 (GMT) |
commit | 68fcd2b14042333c40301841406a968564159105 (patch) | |
tree | 77c19dea11254d1d4aca26387d7a58a1af61b6f6 /test/Variables | |
parent | 473278769f74086dd95c1a1640302ad5029ede12 (diff) | |
download | SCons-68fcd2b14042333c40301841406a968564159105.zip SCons-68fcd2b14042333c40301841406a968564159105.tar.gz SCons-68fcd2b14042333c40301841406a968564159105.tar.bz2 |
Improve error messages for invalid EnumVariables to include legal values.
Diffstat (limited to 'test/Variables')
-rw-r--r-- | test/Variables/EnumVariable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Variables/EnumVariable.py b/test/Variables/EnumVariable.py index bb85f4c..c04b396 100644 --- a/test/Variables/EnumVariable.py +++ b/test/Variables/EnumVariable.py @@ -83,19 +83,19 @@ test.run(arguments='debug=full guilib=KdE some=EiNs') check(['full', 'KdE', 'eins']) expect_stderr = """ -scons: *** Invalid value for option debug: FULL +scons: *** Invalid value for option debug: FULL. Valid values are: ('yes', 'no', 'full') """ + test.python_file_line(SConstruct_path, 21) test.run(arguments='debug=FULL', stderr=expect_stderr, status=2) expect_stderr = """ -scons: *** Invalid value for option guilib: irgendwas +scons: *** Invalid value for option guilib: irgendwas. Valid values are: ('motif', 'gtk', 'kde') """ + test.python_file_line(SConstruct_path, 21) test.run(arguments='guilib=IrGeNdwas', stderr=expect_stderr, status=2) expect_stderr = """ -scons: *** Invalid value for option some: irgendwas +scons: *** Invalid value for option some: irgendwas. Valid values are: ('xaver', 'eins') """ + test.python_file_line(SConstruct_path, 21) test.run(arguments='some=IrGeNdwas', stderr=expect_stderr, status=2) |