File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 616
616
basePackages . start-server
617
617
] ;
618
618
} ''
619
- cleanup() {
620
- echo "Cleaning up..."
621
- @OVERMIND@ quit || true
622
- exit $1
623
- }
624
-
625
- trap 'cleanup 1' ERR
626
619
set -e
627
620
628
621
export KEY_FILE="${ getkeyScript } "
636
629
sleep 1
637
630
if [ $i -eq 60 ]; then
638
631
echo "PostgreSQL failed to start"
639
- cleanup 1
632
+ exit 1
640
633
fi
641
634
done
642
635
643
636
644
637
if ! psql -p 5435 -h localhost --no-password --username=supabase_admin -d postgres -v ON_ERROR_STOP=1 -Xaf ${ ./nix/tests/prime.sql } ; then
645
638
echo "Error executing SQL file"
646
- cleanup 1
639
+ exit 1
647
640
fi
648
641
649
642
mkdir -p $out/regression_output
657
650
--user=supabase_admin \
658
651
$(ls ${ ./nix/tests/sql } | sed -e 's/\..*$//' | sort ); then
659
652
echo "pg_regress tests failed"
660
- cleanup 1
653
+ exit 1
661
654
fi
662
655
663
656
# Copy logs to output
664
657
for logfile in $(find /tmp -name postgresql.log -type f); do
665
658
cp "$logfile" $out/postgresql.log
666
659
done
667
- cleanup 0
660
+ exit 0
668
661
'' ;
669
662
in
670
663
rec {
You can’t perform that action at this time.
0 commit comments