From 6f8ebfa30d4144c183242e71cb9b53cd575355e0 Mon Sep 17 00:00:00 2001 From: MalinAhlberg Date: Mon, 4 Nov 2024 10:17:04 +0100 Subject: [PATCH] fix comparison --- .github/integration/tests/sda/20_ingest-verify_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/integration/tests/sda/20_ingest-verify_test.sh b/.github/integration/tests/sda/20_ingest-verify_test.sh index 78cab172f..a663ad002 100644 --- a/.github/integration/tests/sda/20_ingest-verify_test.sh +++ b/.github/integration/tests/sda/20_ingest-verify_test.sh @@ -71,7 +71,7 @@ done # check that the files have key hashes assigned key_hashes="$(psql -U postgres -h postgres -d sda -At -c "select distinct key_hash from sda.files" | wc -l)" -if [ "$key_hashes" -lt 0 ]; then +if [ "$key_hashes" -eq 0 ]; then echo "::error::Ingested files did not have any key hashes." exit 1 fi