Skip to content

Commit 44face0

Browse files
committed
Env vars in debug mode
1 parent babbe54 commit 44face0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

scripts/run_integration_tests.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,15 @@ done
7777
if [[ "$DEBUG_MODE" == "true" ]]; then
7878
echo "---------------------------------------------------"
7979
echo "Debug mode enabled. Databases are running."
80-
echo "You can connect to them using the following DSNs:"
81-
[[ -n "$POSTGRES_TEST_DSN" ]] && echo "Postgres: $POSTGRES_TEST_DSN"
82-
[[ -n "$MYSQL_TEST_DSN" ]] && echo "MySQL: $MYSQL_TEST_DSN"
80+
echo "You can connect to them using the following DSNs."
81+
echo ""
82+
echo "Run the following commands to set up your environment:"
83+
echo ""
84+
[[ -n "$POSTGRES_TEST_DSN" ]] && echo "export POSTGRES_TEST_DSN=\"$POSTGRES_TEST_DSN\""
85+
[[ -n "$MYSQL_TEST_DSN" ]] && echo "export MYSQL_TEST_DSN=\"$MYSQL_TEST_DSN\""
86+
echo ""
8387
echo "---------------------------------------------------"
84-
echo "Run ./scripts/run_integration_tests.sh --stop to shut them down."
88+
echo "Run ./scripts/run_integration_tests.sh --stop to shut databases down."
8589
exit 0
8690
fi
8791

0 commit comments

Comments
 (0)