fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/31424 )
Change subject: ttcn3-pgw-test: make all directories writable by all users ......................................................................
ttcn3-pgw-test: make all directories writable by all users
When running jenkins.sh as root or any other user with UID different than UID=1000 of the 'osmocom' user we have in open5gs-{master,latest} images, programs spawned by osmo-uecups-daemon (e.g. ping) may fail to start. In such cases, osmo-uecups-daemon reports unexpected program termination with exit code=512. This is happening because the stdout and stderr of a spawned program are being redirected to "$VOL_BASE_DIR/pgw-tester/TESTCASE.prog.std{out,err}", for which the 'osmocom' user needs to have write permissions.
A simple solution is to run 'chmod 777' on all subdirs of $VOL_BASE_DIR.
Change-Id: Icb6b30e618e290d974a919fef34c6b5cb7eeb648 Related: OS#5913 --- M ttcn3-pgw-test/jenkins.sh 1 file changed, 24 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/24/31424/1
diff --git a/ttcn3-pgw-test/jenkins.sh b/ttcn3-pgw-test/jenkins.sh index 58cfbbd..0b9f36d 100755 --- a/ttcn3-pgw-test/jenkins.sh +++ b/ttcn3-pgw-test/jenkins.sh @@ -19,6 +19,9 @@ cp upfd.sh $VOL_BASE_DIR/pgw/ cp upfd-setup.sh $VOL_BASE_DIR/pgw/
+# make all directories writable by all users +chmod 777 $(find $VOL_BASE_DIR -type d) + network_create network_replace_subnet_in_configs