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/tst-fail.sh | |
| parent | test: add a new test (diff) | |
| download | test-harness-1.0.2.tar.gz test-harness-1.0.2.zip | |
test: add new tests, fix old onesv1.0.2
Diffstat (limited to 'test/tst-fail.sh')
| -rw-r--r-- | test/tst-fail.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/tst-fail.sh b/test/tst-fail.sh index 3c12ee3..8c60cf8 100644 --- a/test/tst-fail.sh +++ b/test/tst-fail.sh @@ -1,15 +1,13 @@ test_run() { cat > "$test_root_dir/$test_file" <<'EOF' -test_should_fail=1 - test_run() { log "I'm a failure" false } EOF - local output - output="$( test_run_harness )" + local output= + output="$( test_run_harness )" || true test_check_harness_log "$output" "$test_file | I'm a failure" test_check_harness_summary "$output" 0 1 |
