Change in docker-playground[master]: ttcn3-fr-test: store execution logs for both containers

fixeria gerrit-no-reply at lists.osmocom.org
Tue Mar 16 14:51:56 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/23373 )


Change subject: ttcn3-fr-test: store execution logs for both containers
......................................................................

ttcn3-fr-test: store execution logs for both containers

Change-Id: I60e60bfdc9f6b8fde81189d35d0ca4e73e310cc7
---
M ttcn3-fr-test/jenkins.sh
1 file changed, 7 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/73/23373/1

diff --git a/ttcn3-fr-test/jenkins.sh b/ttcn3-fr-test/jenkins.sh
index 1e383e5..bfe775f 100755
--- a/ttcn3-fr-test/jenkins.sh
+++ b/ttcn3-fr-test/jenkins.sh
@@ -23,7 +23,7 @@
 mkdir $VOL_BASE_DIR/unix
 
 echo Starting container with FRNET
-docker run	--rm \
+docker run	\
 		--cap-add=NET_RAW --cap-add=SYS_RAWIO \
 		$(docker_network_params $SUBNET 10) \
 		--ulimit core=-1 \
@@ -42,7 +42,7 @@
 done
 
 echo Starting container with FR testsuite
-docker run	--rm \
+docker run	\
 		--cap-add=NET_RAW --cap-add=SYS_RAWIO \
 		$(docker_network_params $SUBNET 103) \
 		--ulimit core=-1 \
@@ -63,3 +63,8 @@
 # emulate running container in foreground, which is no longer possible as we
 # must shift the net-devices into the container _after_ it is started
 docker logs	-f ${BUILD_TAG}-ttcn3-fr-test
+
+# store execution logs for both containers
+docker logs --timestamps ${BUILD_TAG}-ttcn3-fr-test > $VOL_BASE_DIR/fr-tester/exec.log
+docker logs --timestamps ${BUILD_TAG}-frnet > $VOL_BASE_DIR/frnet/exec.log
+docker container rm ${BUILD_TAG}-frnet ${BUILD_TAG}-ttcn3-fr-test

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/23373
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I60e60bfdc9f6b8fde81189d35d0ca4e73e310cc7
Gerrit-Change-Number: 23373
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210316/c71ca60b/attachment.htm>


More information about the gerrit-log mailing list