Skip to content

Commit 3932c51

Browse files
tom-tanGlassOfWhiskey
authored andcommitted
Fix -l to list tests without cwl-runner (#174)
1 parent 02117b9 commit 3932c51

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

run_test.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ if [ -n "${SELF}" ]; then
128128
exit 0
129129
fi
130130

131-
if ! runner="$(command -v $RUNNER)" ; then
131+
if [ -n "${TEST_L}" ]; then
132+
runner=$RUNNER
133+
elif ! runner="$(command -v $RUNNER)" ; then
132134
echo >&2 "$helpmessage"
133135
echo >&2
134136
echo >&2 "runner '$RUNNER' not found"
@@ -139,9 +141,12 @@ runs=0
139141
failures=0
140142

141143
runtest() {
142-
echo "--- Running CWL Conformance Tests $CWL_VER on $1 ---"
143144

144-
"$1" --version
145+
if [ -z "${TEST_L}" ]; then
146+
echo "--- Running CWL Conformance Tests $CWL_VER on $1 ---"
147+
148+
"$1" --version
149+
fi
145150

146151
runs=$((runs+1))
147152
(COMMAND="cwltest --tool $1 \

0 commit comments

Comments
 (0)