diff options
author | Martin Babinsky <mbabinsk@redhat.com> | 2017-01-05 10:10:06 +0100 |
---|---|---|
committer | Martin Babinsky <mbabinsk@redhat.com> | 2017-01-05 16:21:51 +0100 |
commit | 0ef55a91ef9c591cee3a7e1ff0e391cdc32423c3 (patch) | |
tree | 244f66c42542e11fe3dcc36ee33b4d6eebb2f441 /.travis.yml | |
parent | 4abd3f554a436e6446ba59c75c09fb0ff8b7fe4a (diff) | |
download | freeipa-0ef55a91ef9c591cee3a7e1ff0e391cdc32423c3.tar.gz freeipa-0ef55a91ef9c591cee3a7e1ff0e391cdc32423c3.tar.xz freeipa-0ef55a91ef9c591cee3a7e1ff0e391cdc32423c3.zip |
Trim the test runner log to show only pytest failures/errors
If we get to the `run-tests` phase, we no longer care about messages
from previous steps so we can truncate the log output to only show
pytest failures/errors, reducing log size.
As a fallback, the previous behaviour to print last 5000 log lines was
kept in the case the CI tests fail during setup.
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 4f36b82cb..63019749c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ env: TEST_RUNNER_CONFIG=".test_runner_config.yaml" PEP8_ERROR_LOG="pep8_errors.log" CI_RESULTS_LOG="ci_results_${TRAVIS_BRANCH}.log" + CI_BACKLOG_SIZE=5000 matrix: - TASK_TO_RUN="lint" - TASK_TO_RUN="run-tests" @@ -32,5 +33,5 @@ install: script: - travis_wait 50 ./.travis_run_task.sh after_failure: - - echo "Test runner output:"; tail -n 5000 $CI_RESULTS_LOG + - echo "Test runner output:"; tail -n $CI_BACKLOG_SIZE $CI_RESULTS_LOG - echo "PEP-8 errors:"; cat $PEP8_ERROR_LOG |