diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index c48fce591508..63b710780aaf 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -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:])