Skip to content

Commit

Permalink
Fix test runner for parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 committed Oct 13, 2023
1 parent 4c188d0 commit 98d5445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion scripts/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ if [[ -n "$FILTER" || -n "$EXCLUDE" ]]; then
while IFS= read -r f; do
if [ -n "$FILTER" ]; then
if [[ $f == *"$FILTER"* ]]; then
echo "HERE $f"
print_test $f $TMP_OUTDIR/schedule.txt $FIRST_TEST
fi
elif [ -n "$EXCLUDE" ]; then
Expand Down
6 changes: 4 additions & 2 deletions test/test_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ function run_regression_test {
cd sql/

# install lantern extension
psql "$@" -U ${DB_USER} -d postgres -v ECHO=none -q -c "DROP DATABASE IF EXISTS ${TEST_CASE_DB};" 2>/dev/null
psql "$@" -U ${DB_USER} -d postgres -v ECHO=none -q -c "CREATE DATABASE ${TEST_CASE_DB};" 2>/dev/null
if [[ "$PARALLEL" -eq 0 || "$TESTFILE_NAME" == "begin" ]]; then
psql "$@" -U ${DB_USER} -d postgres -v ECHO=none -q -c "DROP DATABASE IF EXISTS ${TEST_CASE_DB};" 2>/dev/null
psql "$@" -U ${DB_USER} -d postgres -v ECHO=none -q -c "CREATE DATABASE ${TEST_CASE_DB};" 2>/dev/null
fi
if [ ! -z "$UPDATE_EXTENSION" ]
then
if [ -z "$UPDATE_FROM" ] || [ -z "$UPDATE_TO" ]
Expand Down

0 comments on commit 98d5445

Please sign in to comment.