Skip to content

Commit

Permalink
Fix silent test failures enforcing min shunit2 version
Browse files Browse the repository at this point in the history
Closes: #39

Signed-off-by: Arthur Diniz <[email protected]>
  • Loading branch information
arthurbdiniz authored and samueloph committed Dec 19, 2024
1 parent eaae96d commit 52958b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ export PATH="${ROOTDIR}:${PATH}"

readonly WCURL_CMD="wcurl --dry-run "

oneTimeSetUp() {
if ! assertContains "Check compatibility" "test" "test"; then
echo "Error: shunit2 version 2.1.8 or higher is required."
echo "Please install a compatible version of shunit2."
exit 1
fi
}

debug()
{
if [ -n "${DEBUG}" ]; then
Expand Down

0 comments on commit 52958b6

Please sign in to comment.