diff options
Diffstat (limited to 'common/ttcn3-docker-run.sh')
-rwxr-xr-x | common/ttcn3-docker-run.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/common/ttcn3-docker-run.sh b/common/ttcn3-docker-run.sh index 26e291c..c8c871e 100755 --- a/common/ttcn3-docker-run.sh +++ b/common/ttcn3-docker-run.sh @@ -33,7 +33,21 @@ fi cd /data -/osmo-ttcn3-hacks/start-testsuite.sh "/osmo-ttcn3-hacks/$SUBDIR/$SUITE" +# Use TEST_NAME to only run one test instead of all. Set it like this: +# $ cd ttcn3-hlr-test +# $ export DOCKER_ARGS="-e TEST_NAME=TC_gsup_sai" +# $ ./jenkins.sh + +EXTRA_ARGS="" +if [ -n "$TEST_NAME" ]; then + EXTRA_ARGS="$SUITE.$TEST_NAME" +fi + +/osmo-ttcn3-hacks/start-testsuite.sh \ + "/osmo-ttcn3-hacks/$SUBDIR/$SUITE" \ + "$SUITE.cfg" \ + $EXTRA_ARGS + exit_code=$? /osmo-ttcn3-hacks/log_merge.sh "$SUITE" --rm |