Do not specify both '-a' and '+a' at the same time.

llvm-svn: 121501
This commit is contained in:
Johnny Chen 2010-12-10 19:02:23 +00:00
parent f3e22ac3c7
commit 240f8c7dd1
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,7 @@ where options:
-a : don't do lldb Python API tests
use @python_api_test to decorate a test case as lldb Python API test
+a : just do lldb Python API tests
do not specify both '-a' and '+a' at the same time
-b : read a blacklist file specified after this option
-c : read a config file specified after this option
(see also lldb-trunk/example/test/usage-config)
@ -370,6 +371,10 @@ def parseOptionsAndInitTestdirs():
print "Unknown option: ", sys.argv[index]
usage()
# Do not specify both '-a' and '+a' at the same time.
if dont_do_python_api_test and just_do_python_api_test:
usage()
# Gather all the dirs passed on the command line.
if len(sys.argv) > index:
testdirs = map(os.path.abspath, sys.argv[index:])