Skip to content

Commit 1ebbb67

Browse files
committed
Make the tests fail when a ODK program can't be run.
Update the test-program.sh script so that it not only prints a "KO" string when the test program cannot be run, but it also exists with a non-zero exit code, so that it makes the `test_odk{full|lite}_programs` target fail. closes #1258
1 parent c2b24a6 commit 1ebbb67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ ODK_TAG=${ODK_TAG:-latest}
55

66
program_name=$1; shift
77
echo -n "Checking for $program_name... "
8-
docker run --rm obolibrary/$ODK_IMAGE:$ODK_TAG $@ >/dev/null && echo OK || echo KO
8+
docker run --rm obolibrary/$ODK_IMAGE:$ODK_TAG $@ >/dev/null && echo OK || { echo KO ; exit 1 ; }

0 commit comments

Comments
 (0)