test/api.sh: do not print to stdout when dumping the DB
Ensure that the content of the database is not printed to the console when dumped at the end of the test case. The output is still preserved as a CI run artifact. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
7a44d00cec
commit
5acaaabc1d
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ function dump_db() {
|
|||
set +x
|
||||
|
||||
# Make sure we get 3 job entries in the db per compose (depsolve + manifest + build)
|
||||
sudo ${CONTAINER_RUNTIME} exec "${DB_CONTAINER_NAME}" psql -U postgres -d osbuildcomposer -c "SELECT * FROM jobs;" | grep "9 rows"
|
||||
sudo ${CONTAINER_RUNTIME} exec "${DB_CONTAINER_NAME}" psql -U postgres -d osbuildcomposer -c "SELECT * FROM jobs;" | grep "9 rows" > /dev/null
|
||||
|
||||
# Save the result, including the manifest, for the job, straight from the db
|
||||
sudo ${CONTAINER_RUNTIME} exec "${DB_CONTAINER_NAME}" psql -U postgres -d osbuildcomposer -c "SELECT result FROM jobs WHERE type='manifest-id-only'" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue