Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | def main(): | ||||
parser.add_argument('--jobs', '-j', type=int, default=DEFAULT_JOBS, | parser.add_argument('--jobs', '-j', type=int, default=DEFAULT_JOBS, | ||||
help='how many test scripts to run in parallel. Default=4.') | help='how many test scripts to run in parallel. Default=4.') | ||||
parser.add_argument('--keepcache', '-k', action='store_true', | parser.add_argument('--keepcache', '-k', action='store_true', | ||||
help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.') | help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.') | ||||
parser.add_argument('--quiet', '-q', action='store_true', | parser.add_argument('--quiet', '-q', action='store_true', | ||||
help='only print results summary and failure logs') | help='only print results summary and failure logs') | ||||
parser.add_argument('--tmpdirprefix', '-t', | parser.add_argument('--tmpdirprefix', '-t', | ||||
default=tempfile.gettempdir(), help="Root directory for datadirs") | default=tempfile.gettempdir(), help="Root directory for datadirs") | ||||
parser.add_argument('--junitoutput', '-ju', | parser.add_argument('--junitoutput', '-J', | ||||
default=os.path.join(build_dir, 'junit_results.xml'), help="file that will store JUnit formatted test results.") | default=os.path.join(build_dir, 'junit_results.xml'), help="file that will store JUnit formatted test results.") | ||||
args, unknown_args = parser.parse_known_args() | args, unknown_args = parser.parse_known_args() | ||||
# args to be passed on always start with two dashes; tests are the | # args to be passed on always start with two dashes; tests are the | ||||
# remaining unknown args | # remaining unknown args | ||||
tests = [arg for arg in unknown_args if arg[:2] != "--"] | tests = [arg for arg in unknown_args if arg[:2] != "--"] | ||||
passon_args = [arg for arg in unknown_args if arg[:2] == "--"] | passon_args = [arg for arg in unknown_args if arg[:2] == "--"] | ||||
▲ Show 20 Lines • Show All 565 Lines • Show Last 20 Lines |