From 9f07b36c4480a3e8e2a46906748bee28e7780f10 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 15 Oct 2026 21:01:48 +0500 Subject: test: add new tests, fix old ones --- test/lib/test.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/lib') diff --git a/test/lib/test.sh b/test/lib/test.sh index 56920a2..7fca67b 100644 --- a/test/lib/test.sh +++ b/test/lib/test.sh @@ -1,5 +1,5 @@ test_run_harness() { - "$tests_dir/../harness" -d "$test_root_dir" 2>&1 + "$tests_dir/../harness" -d "$test_root_dir" "$@" 2>&1 } test_check_harness_log() { @@ -11,11 +11,10 @@ test_check_harness_log() { local output="$1" shift - log "Checking output log for a substring..." - local str for str; do - if ! echo "$output" | grep -F $'\n'"$str"$'\n' > /dev/null; then + log "Checking output log for line: $str" + if ! echo "$output" | grep -F --line-regexp "$str" > /dev/null; then fail "Couldn't find the expected string: $str" return 1 fi -- cgit v1.3