diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-09 15:28:25 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-04-24 13:46:05 +0000 |
commit | 2f61bf81e908ccaa989a1e773fb193935b0eee43 (patch) | |
tree | 410a30b2b6c58d056dc7d3e976a1b3fc9675e49f /ttcn3-msc-test/jenkins.sh | |
parent | 9f5131ab9d61279271e55165ae8f39a15a2edca7 (diff) |
jenkins.sh: have one common function to collect logs
To remove code dup and prepare a change to where logs are written, add
collect_logs() to jenkins_common.sh and call that from each jenkins.sh after
the tests are done.
The 'rm -rf' is already done before a test starts. No need to do that again
after each test.
Change-Id: I5d8472ec36b07c828685b1bd7718e31392d168a3
Diffstat (limited to 'ttcn3-msc-test/jenkins.sh')
-rwxr-xr-x | ttcn3-msc-test/jenkins.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ttcn3-msc-test/jenkins.sh b/ttcn3-msc-test/jenkins.sh index 635b656..560eea7 100755 --- a/ttcn3-msc-test/jenkins.sh +++ b/ttcn3-msc-test/jenkins.sh @@ -47,9 +47,5 @@ docker container kill ${BUILD_TAG}-msc docker container kill ${BUILD_TAG}-stp network_remove - -rm -rf $WORKSPACE/logs -mkdir -p $WORKSPACE/logs rm -rf $VOL_BASE_DIR/unix -cp -a $VOL_BASE_DIR/* $WORKSPACE/logs/ -cat $WORKSPACE/logs/msc-tester/junit-*.log || true +collect_logs |