Skip to content

Commit

Permalink
Fix test shell
Browse files Browse the repository at this point in the history
  • Loading branch information
rodo committed Dec 12, 2024
1 parent ad337a1 commit 9e676c9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/shell/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
set -e

errors=0
results=$(psql -f error_tests.sql )
[ "$?" -ne 0 ] || {
echo "Test returned error code $?, this is what we want" 2>&1
results=$(psql -v ON_ERROR_STOP=1 -f error_tests.sql )
if [ "$?" -ne 0 ]; then
exit 0
}
else
exit 1
fi

0 comments on commit 9e676c9

Please sign in to comment.