diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-01-13 21:36:05 +0000 |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-01-13 21:36:05 +0000 |
commit | 67b0ccbf2fc54b2b06c7b62eebb913749d15bd85 (patch) | |
tree | 77c19dea11254d1d4aca26387d7a58a1af61b6f6 /test/Deprecated | |
parent | e6417f2e1099059f08646dc0143f583281668d25 (diff) | |
download | scons-67b0ccbf2fc54b2b06c7b62eebb913749d15bd85.tar.gz |
Improve error messages for invalid EnumVariables to include legal values.
Diffstat (limited to 'test/Deprecated')
-rw-r--r-- | test/Deprecated/Options/EnumOption.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Deprecated/Options/EnumOption.py b/test/Deprecated/Options/EnumOption.py index 6756f09c..57ae7eb5 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) |