forked from OSchip/llvm-project
Better error message for invalid argument to --category - silenced the printout of the raw args when not in verbose mode
llvm-svn: 166514
This commit is contained in:
parent
3f7d548a16
commit
6c61cbbc49
|
@ -409,6 +409,9 @@ def parseOptionsAndInitTestdirs():
|
||||||
|
|
||||||
platform_system = platform.system()
|
platform_system = platform.system()
|
||||||
platform_machine = platform.machine()
|
platform_machine = platform.machine()
|
||||||
|
|
||||||
|
# only print the args if being verbose
|
||||||
|
if args.v:
|
||||||
print args
|
print args
|
||||||
|
|
||||||
if args.h:
|
if args.h:
|
||||||
|
@ -425,7 +428,9 @@ def parseOptionsAndInitTestdirs():
|
||||||
if args.categoriesList:
|
if args.categoriesList:
|
||||||
for category in args.categoriesList:
|
for category in args.categoriesList:
|
||||||
if not(category in validCategories):
|
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)
|
sys.exit(1)
|
||||||
categoriesList = set(args.categoriesList)
|
categoriesList = set(args.categoriesList)
|
||||||
useCategories = True
|
useCategories = True
|
||||||
|
|
Loading…
Reference in New Issue