-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Labels
enhancementImprove existing functionality or make things work betterImprove existing functionality or make things work better
Description
I am trying to check if a database is both up and the database schema has been initialised, however I am running into the following issue:
> psql -h $DB_HOST -p $DB_PORT -U $DB_USER $DB_NAME -c 'SELECT count(*) FROM schema_migrations'
<expected number>
> $?
0
> wait4x exec "psql -h $DB_HOST -p $DB_PORT -U $DB_USER $DB_NAME -c 'SELECT count(*) FROM schema_migrations'"
ERR Expectation failed error="command exited with unexpected code" actual=2 args=["-h","db","-p","5432","-U","postgres","<database name>","-c","'SELECT","count(*)","FROM","schema_migrations'"] command=psql expect=0It would be very useful to be able to pass a flag to the exec option to see the stdout and stderr from a failed exec attempt.
I am happy to provide any extra information.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementImprove existing functionality or make things work betterImprove existing functionality or make things work better