diff options
-rwxr-xr-x | subx/run_one_test.sh | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/subx/run_one_test.sh b/subx/run_one_test.sh index 5784af1d..a1aa1016 100755 --- a/subx/run_one_test.sh +++ b/subx/run_one_test.sh @@ -4,18 +4,13 @@ if [[ $2 == 'test-'* ]] then - export TEST_NAME=$2 - echo $TEST_NAME > /tmp/last_test_run -elif [[ -e /tmp/last_test_run ]] + TEST_NAME=$2 envsubst '$TEST_NAME' < run_one_test.subx > /tmp/run_one_test.subx +elif [[ ! -e /tmp/run_one_test.subx ]] then - export TEST_NAME=`cat /tmp/last_test_run` -else echo "no test found" exit 0 # don't open trace fi -envsubst '$TEST_NAME' < run_one_test.subx > /tmp/run_one_test.subx - set -e if [[ $1 == */* ]] then |