diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-15 21:01:48 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-15 21:01:48 +0500 |
| commit | 9f07b36c4480a3e8e2a46906748bee28e7780f10 (patch) | |
| tree | 3c8a875e686be7992ad3724e9db90eaa93f86197 /test/lib/test.sh | |
| parent | test: add a new test (diff) | |
| download | test-harness-9f07b36c4480a3e8e2a46906748bee28e7780f10.tar.gz test-harness-9f07b36c4480a3e8e2a46906748bee28e7780f10.zip | |
test: add new tests, fix old onesv1.0.2
Diffstat (limited to 'test/lib/test.sh')
| -rw-r--r-- | test/lib/test.sh | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
