diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-06-29 20:49:50 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-01 23:09:58 -0700 |
commit | 0fab3deb6c1b9a488dfb8c70fc10d4d67f2b971a (patch) | |
tree | 86e205b7236d10d85b08bb44d5e9ec5ad8158134 | |
parent | 89a7cac6c962777aa7b02f53542b013727b90e36 (diff) | |
download | mu-0fab3deb6c1b9a488dfb8c70fc10d4d67f2b971a.tar.gz |
.
Simplify run_one_test.sh. We already create /tmp/run_one_test.subx, we don't need to track more state across runs.
-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 |