Skip to content

Commit

Permalink
Print autoinst-log.txt after Travis testrun
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Aug 6, 2018
1 parent dddbc46 commit 4edac36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -21,10 +21,11 @@ cache:
script:
- mkdir -p assets/cache
- chmod a+w assets/cache
- touch openqa-debug.log
- chmod a+w openqa-debug.log
- touch openqa-debug.log autoinst-log.txt
- chmod a+w openqa-debug.log autoinst-log.txt
- docker run --cap-add SYS_ADMIN -v $TRAVIS_BUILD_DIR:/opt/openqa -v /var/run/dbus:/var/run/dbus
--env-file <(env | grep TRAVIS) -e TRAVIS=true -e FULLSTACK -e UITESTS -e SCHEDULER_FULLSTACK -e DEVELOPER_FULLSTACK
-e GH_PUBLISH registry.opensuse.org/devel/openqa/containers/openqa_dev make travis-codecov
after_failure:
- cat openqa-debug.log
- cat autoinst-log.txt
6 changes: 5 additions & 1 deletion script/docker-tests
Expand Up @@ -28,7 +28,11 @@ function run_fullstack_test {

eval $(dbus-launch --sh-syntax)
export PERL5OPT="$PERL5OPT $HARNESS_PERL_SWITCHES"
perl "$@" || touch tests_failed
if ! perl "$@"; then
touch tests_failed
find '/tmp' -path '*/t/full-stack.d/openqa/testresults/*/autoinst-log.txt' \
-exec echo 'contents of' {} \; -exec cat {} \; 2> /dev/null > '/opt/openqa/autoinst-log.txt'
fi
}

if [ "x$FULLSTACK" = x1 ]; then
Expand Down

0 comments on commit 4edac36

Please sign in to comment.