Skip to content

Commit 82a09b7

Browse files
committed
enable coverage testing
1 parent d34d2ac commit 82a09b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

run_test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ EOF
1414
DRAFT=draft-3
1515
TEST_N=""
1616
RUNNER=cwl-runner
17-
PLATFORM=`uname -s`
17+
PLATFORM=$(uname -s)
18+
COVERAGE="python"
1819

1920
while [[ -n "$1" ]]
2021
do
@@ -63,7 +64,9 @@ runtest() {
6364

6465
runs=$((runs+1))
6566
(cd $DRAFT
66-
python -mcwltool.cwltest --tool "$1" --test=conformance_test_$DRAFT.yaml $TEST_N $TEST_L $ONLY_TOOLS --basedir $DRAFT
67+
${COVERAGE} -m cwltool.cwltest --tool "$1" \
68+
--test=conformance_test_${DRAFT}.yaml ${TEST_N} \
69+
${TEST_L} ${ONLY_TOOLS} --basedir ${DRAFT}
6770
)
6871
checkexit
6972
}

0 commit comments

Comments
 (0)