From 5acaaabc1d36c8f3106e968981f84da79a03c07f Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Mon, 21 Mar 2022 08:38:48 +0100 Subject: [PATCH] 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 --- test/cases/api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/api.sh b/test/cases/api.sh index 908c84157..f6c55596a 100755 --- a/test/cases/api.sh +++ b/test/cases/api.sh @@ -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'" \