Skip to content

Commit 34c9bc2

Browse files
committed
fix: print logs to stdout/stderr instead of logfile
1 parent d72b79d commit 34c9bc2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

flake.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,15 +417,12 @@
417417
fi
418418
done
419419
createdb -p 5432 -h localhost testing
420-
if ! psql -p 5432 -h localhost -d testing -v ON_ERROR_STOP=1 -Xaf ${./nix/tests/prime.sql} > $TMPDIR/psql_output.log 2>&1; then
421-
echo "Error executing SQL file. Error output:"
422-
cat $TMPDIR/psql_output.log
423-
echo "PostgreSQL log content:"
420+
if ! psql -p 5432 -h localhost -d testing -v ON_ERROR_STOP=1 -Xaf ${./nix/tests/prime.sql}; then
421+
echo "Error executing SQL file. PostgreSQL log content:"
424422
cat $TMPDIR/logfile/postgresql.log
425423
pg_ctl -D "$PGDATA" stop
426424
exit 1
427425
fi
428-
429426
pg_prove -p 5432 -h localhost -d testing ${sqlTests}/*.sql
430427
431428
mkdir -p $out/regression_output

0 commit comments

Comments
 (0)