diff --git a/ci/infra/testrunner/README.md b/ci/infra/testrunner/README.md index 9d4deb74ce..cdb75e3927 100644 --- a/ci/infra/testrunner/README.md +++ b/ci/infra/testrunner/README.md @@ -488,7 +488,7 @@ optional arguments: test file name -t TEST, --test TEST test to execute -l, --list only list tests to be executed - -v, --verbose show all output + -v, --verbose show all output from testrunner libraries --skip-setup {provisioned,bootstrapped,deployed} Skip the given setup step. 'provisioned' For when you have already provisioned the nodes. 'bootstrapped' For diff --git a/ci/infra/testrunner/testrunner.py b/ci/infra/testrunner/testrunner.py index 37ec5bfaa9..764972e972 100644 --- a/ci/infra/testrunner/testrunner.py +++ b/ci/infra/testrunner/testrunner.py @@ -190,7 +190,7 @@ def main(): test_args.add_argument("-l", "--list", dest="collect", action="store_true", default=False, help="only list tests to be executed") test_args.add_argument("-v", "--verbose", dest="verbose", action="store_true", default=False, - help="show all output") + help="show all output from testrunner libraries") test_args.add_argument("--skip-setup", choices=['provisioned', 'bootstrapped', 'deployed'], help="Skip the given setup step.\n" diff --git a/ci/infra/testrunner/tests/driver.py b/ci/infra/testrunner/tests/driver.py index b04482e4dd..d5e84f6dff 100644 --- a/ci/infra/testrunner/tests/driver.py +++ b/ci/infra/testrunner/tests/driver.py @@ -7,6 +7,9 @@ class PyTestOpts: + + NO_CAPTURE_LOGS = "--show-capture=no" + SHOW_OUTPUT = "-s" VERBOSE = "-v" @@ -32,7 +35,12 @@ def run(self, module=None, test_suite=None, if verbose: opts.append(PyTestOpts.SHOW_OUTPUT) - opts.append(PyTestOpts.VERBOSE) + + # Dont capture logs + opts.append(PyTestOpts.NO_CAPTURE_LOGS) + + # generete detailed test results + opts.append(PyTestOpts.VERBOSE) if collect: opts.append(PyTestOpts.COLLECT_TESTS)