summaryrefslogtreecommitdiffstats
path: root/test/Deprecated/Options/EnumOption.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2011-01-13 21:36:05 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2011-01-13 21:36:05 (GMT)
commit68fcd2b14042333c40301841406a968564159105 (patch)
tree77c19dea11254d1d4aca26387d7a58a1af61b6f6 /test/Deprecated/Options/EnumOption.py
parent473278769f74086dd95c1a1640302ad5029ede12 (diff)
downloadSCons-68fcd2b14042333c40301841406a968564159105.zip
SCons-68fcd2b14042333c40301841406a968564159105.tar.gz
SCons-68fcd2b14042333c40301841406a968564159105.tar.bz2
Improve error messages for invalid EnumVariables to include legal values.
Diffstat (limited to 'test/Deprecated/Options/EnumOption.py')
-rw-r--r--test/Deprecated/Options/EnumOption.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Deprecated/Options/EnumOption.py b/test/Deprecated/Options/EnumOption.py
index 6756f09..57ae7eb 100644
--- a/test/Deprecated/Options/EnumOption.py
+++ b/test/Deprecated/Options/EnumOption.py
@@ -90,19 +90,19 @@ test.run(arguments='debug=full guilib=KdE some=EiNs', stderr=warnings)
check(['full', 'KdE', 'eins'])
expect_stderr = warnings + """
-scons: \\*\\*\\* Invalid value for option debug: FULL
+scons: \\*\\*\\* Invalid value for option debug: FULL. Valid values are: \\('yes', 'no', 'full'\\)
""" + TestSCons.file_expr
test.run(arguments='debug=FULL', stderr=expect_stderr, status=2)
expect_stderr = warnings + """
-scons: \\*\\*\\* Invalid value for option guilib: irgendwas
+scons: \\*\\*\\* Invalid value for option guilib: irgendwas. Valid values are: \\('motif', 'gtk', 'kde'\\)
""" + TestSCons.file_expr
test.run(arguments='guilib=IrGeNdwas', stderr=expect_stderr, status=2)
expect_stderr = warnings + """
-scons: \\*\\*\\* Invalid value for option some: irgendwas
+scons: \\*\\*\\* Invalid value for option some: irgendwas. Valid values are: \\('xaver', 'eins'\\)
""" + TestSCons.file_expr
test.run(arguments='some=IrGeNdwas', stderr=expect_stderr, status=2)