[Lldb-commits] [lldb] r166514 - /lldb/trunk/test/dotest.py

Enrico Granata egranata at apple.com
Tue Oct 23 15:52:49 PDT 2012


Author: enrico
Date: Tue Oct 23 17:52:49 2012
New Revision: 166514

URL: http://llvm.org/viewvc/llvm-project?rev=166514&view=rev
Log:
Better error message for invalid argument to --category - silenced the printout of the raw args when not in verbose mode

Modified:
    lldb/trunk/test/dotest.py

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=166514&r1=166513&r2=166514&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Oct 23 17:52:49 2012
@@ -409,7 +409,10 @@
 
     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 @@
     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





More information about the lldb-commits mailing list