aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/jenkins-run.sh
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-07 18:15:53 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-05-07 19:09:23 +0200
commit06c82aee5ce007a2c5ba12cd59d3db158c593ee8 (patch)
treee447d6660ac65864f4792a559956641e32f5f03e /contrib/jenkins-run.sh
parent18ff1e6e25ed3d1cbb60474149daa9848027f0d4 (diff)
Deprecate envvar OSMO_GSM_TESTER_CONF and remove other ones
Environment variable OSMO_GSM_TESTER_CONF is marked as deprecated and an error is logged each time it's used. Same feature is available through "-c" command line parameters, so having the envvar only makes things more complex for no good reason. It cannot yet be completely dropped since some environemnt still make use of it. Give some time to users to adapt their setups. Other environment variables setting some config apths can be dropped since they are not being really used in any setup. Change-Id: I7eb69f870d0dcb5906d45ae067d6bed1aabf5862
Diffstat (limited to 'contrib/jenkins-run.sh')
-rwxr-xr-xcontrib/jenkins-run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/jenkins-run.sh b/contrib/jenkins-run.sh
index 4a76c09..89ff13f 100755
--- a/contrib/jenkins-run.sh
+++ b/contrib/jenkins-run.sh
@@ -1,6 +1,8 @@
#!/bin/sh
set -e -x
base="$PWD"
+SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P) # this file's directory
+OSMO_GSM_TESTER_CONF=${OSMO_GSM_TESTER_CONF:-${SCRIPT_DIR}/../sysmocom}
time_start="$(date '+%F %T')"
@@ -21,7 +23,7 @@ rm *.md5
# jenkins build job.
# On failure, first clean up below and then return the exit code.
exit_code="1"
-if python3 -u "$(which osmo-gsm-tester.py)" "$trial_dir" $OSMO_GSM_TESTER_OPTS ; then
+if python3 -u "$(which osmo-gsm-tester.py)" -c "$OSMO_GSM_TESTER_CONF" "$trial_dir" $OSMO_GSM_TESTER_OPTS ; then
exit_code="0"
fi