From b5c8421ac2ded71550a0d35f048b2d4c29fdfdc8 Mon Sep 17 00:00:00 2001 From: Christian Kreibich Date: Mon, 30 Jan 2023 18:22:20 -0800 Subject: [PATCH] Fix two btest-diff checks that couldn't fail :-) --- testing/btest/scripts/base/frameworks/logging/hooks.zeek | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/btest/scripts/base/frameworks/logging/hooks.zeek b/testing/btest/scripts/base/frameworks/logging/hooks.zeek index fc07505853..cb3a150876 100644 --- a/testing/btest/scripts/base/frameworks/logging/hooks.zeek +++ b/testing/btest/scripts/base/frameworks/logging/hooks.zeek @@ -2,8 +2,8 @@ # # @TEST-EXEC: zeek -b test.zeek %INPUT # @TEST-EXEC: btest-diff test.log -# @TEST-EXEC: test -f other.log && btest-diff other.log || true -# @TEST-EXEC: test -f output && btest-diff output || true +# @TEST-EXEC: if test -f other.log; then btest-diff other.log; fi +# @TEST-EXEC: if test -f output; then btest-diff output; fi @TEST-START-FILE test.zeek # This provides a simple test module harness, used by all of the individual tests below.