about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--[-rwxr-xr-x]t/test-lib.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 5e279a1..39225c6 100755..100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -5,19 +5,15 @@
 set +u
 if test -z "$model"
 then
-        case $T in
-        t1???-thread-pool-*.sh) model=ThreadPool ;;
-        t2???-thread-spawn-*.sh) model=ThreadSpawn ;;
-        t3???-revactor-*.sh) model=Revactor ;;
-        t4???-rev-*.sh) model=Rev ;;
-        *) model=Base ;;
-        esac
+        # defaulting to Base would unfortunately fail some concurrency tests
+        model=ThreadSpawn
+        t_info "model undefined, defaulting to $model"
 fi
 
 set -e
 RUBY="${RUBY-ruby}"
 RUBY_VERSION=${RUBY_VERSION-$($RUBY -e 'puts RUBY_VERSION')}
-t_pfx=$PWD/trash/$T-$RUBY_VERSION
+t_pfx=$PWD/trash/$model.$T-$RUBY_VERSION
 set -u
 
 PATH=$PWD/bin:$PATH