Skip to content

Commit 52958b6

Browse files
arthurbdinizsamueloph
authored andcommitted
Fix silent test failures enforcing min shunit2 version
Closes: #39 Signed-off-by: Arthur Diniz <[email protected]>
1 parent eaae96d commit 52958b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/tests.sh

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ export PATH="${ROOTDIR}:${PATH}"
3232

3333
readonly WCURL_CMD="wcurl --dry-run "
3434

35+
oneTimeSetUp() {
36+
if ! assertContains "Check compatibility" "test" "test"; then
37+
echo "Error: shunit2 version 2.1.8 or higher is required."
38+
echo "Please install a compatible version of shunit2."
39+
exit 1
40+
fi
41+
}
42+
3543
debug()
3644
{
3745
if [ -n "${DEBUG}" ]; then

0 commit comments

Comments
 (0)