summaryrefslogtreecommitdiffstats
path: root/lldb/test
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-10-23 22:52:49 +0000
committerEnrico Granata <egranata@apple.com>2012-10-23 22:52:49 +0000
commit6c61cbbc49dd66f3e2849c2bb43b88c88956e648 (patch)
treec8bd784d07d9d88048ebcdad100e46112cb332e4 /lldb/test
parent3f7d548a1637d778d501528ef7555aef901016c3 (diff)
downloadbcm5719-llvm-6c61cbbc49dd66f3e2849c2bb43b88c88956e648.tar.gz
bcm5719-llvm-6c61cbbc49dd66f3e2849c2bb43b88c88956e648.zip
Better error message for invalid argument to --category - silenced the printout of the raw args when not in verbose mode
llvm-svn: 166514
Diffstat (limited to 'lldb/test')
-rwxr-xr-xlldb/test/dotest.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py
index 36678c2abec..965b0463afd 100755
--- a/lldb/test/dotest.py
+++ b/lldb/test/dotest.py
@@ -409,7 +409,10 @@ def parseOptionsAndInitTestdirs():
platform_system = platform.system()
platform_machine = platform.machine()
- print args
+
+ # only print the args if being verbose
+ if args.v:
+ print args
if args.h:
do_help = True
@@ -425,7 +428,9 @@ def parseOptionsAndInitTestdirs():
if args.categoriesList:
for category in args.categoriesList:
if not(category in validCategories):
- print "fatal error: category '" + category + "' is not a valid category - edit dotest.py or correct your invocation"
+ print "fatal error: category '" + category + "' is not a valid category"
+ print "if you have added a new category, please edit dotest.py, adding your new category to validCategories"
+ print "else, please specify one or more of the following: " + str(validCategories.keys())
sys.exit(1)
categoriesList = set(args.categoriesList)
useCategories = True
OpenPOWER on IntegriCloud