parser=argparse.ArgumentParser(description="Run just one test")
parser.add_argument('--nocapture','-s',action='store_true',help="Don't capture stdout (any stdout output will be printed immediately)")
parser.add_argument('words',metavar="WORDS",nargs='+',help="The description of a test failure, like 'ERROR: test_set_missing_field (courseware.tests.test_model_data.TestStudentModuleStorage)'")
args=parser.parse_args(argv)
words=[]
# Collect all the words, ignoring what was quoted together, and get rid of parens.
forargwordinargs.words:
words.extend(w.strip("()")forwinargword.split())
# If it starts with "ERROR:" or "FAIL:", just ignore that.