From 131339c7b076bd5dddaf63dacb4f44f22ff046c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Haziza?= Date: Thu, 11 Jul 2024 10:25:43 +0200 Subject: [PATCH] Fixing the "date expired" tests --- tests/expiration.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/expiration.bats b/tests/expiration.bats index fbcf5c8..9a8b995 100644 --- a/tests/expiration.bats +++ b/tests/expiration.bats @@ -25,10 +25,9 @@ function teardown() { # Alice decrypts it export C4GH_PASSPHRASE=${ALICE_PASSPHRASE} - crypt4gh decrypt --sk ${ALICE_SECKEY} < $TESTFILES/message.c4gh 2>$TESTFILES/message.alice.error >$TESTFILES/message.alice.received + run --separate-stderr crypt4gh decrypt --sk ${ALICE_SECKEY} < $TESTFILES/message.c4gh - run grep -q 'Expired on' $TESTFILES/message.alice.error - [ "$status" -eq 0 ] + [[ "$stderr" =~ "Expired on" ]] unset C4GH_PASSPHRASE }