ttcn3-pgw-test: make the testsuite dir 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.

Change-Id: Icb6b30e618e290d974a919fef34c6b5cb7eeb648
Related: OS#5913
This commit is contained in:
Vadim Yanitskiy 2023-02-21 01:50:13 +07:00
parent 18b578295e
commit abd1105000
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ cp open5gs-*.yaml $VOL_BASE_DIR/pgw/
cp upfd.sh $VOL_BASE_DIR/pgw/
cp upfd-setup.sh $VOL_BASE_DIR/pgw/
# make the testsuite dir writable by all users
chmod 777 $VOL_BASE_DIR/pgw-tester/
network_create
network_replace_subnet_in_configs