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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Mar 16 15:00:23 UTC 2021


laforge has submitted this change. ( 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(-)

Approvals:
  laforge: Looks good to me, approved; Verified



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-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210316/a6993aca/attachment.htm>


More information about the gerrit-log mailing list