diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-10-14 13:43:32 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-10-14 17:30:12 +0300 |
commit | 74eea8fe332c05774f108c5094eb335e58f44cfa (patch) | |
tree | 84a89e57729fbe5eb358270e40dcc7643ab4a577 /tests/test | |
parent | 0ce23b6a1e2e0d7c50fbab83f3aef26a1aeb2271 (diff) |
Fix printing test id multiple times on test failure
Diffstat (limited to 'tests/test')
-rw-r--r-- | tests/test/script/runner/for.testscript | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test/script/runner/for.testscript b/tests/test/script/runner/for.testscript index 5c1133d..1ac7666 100644 --- a/tests/test/script/runner/for.testscript +++ b/tests/test/script/runner/for.testscript @@ -148,6 +148,19 @@ %.+ EOE + : nested-diag-test-id + : + $c <<EOI && $b 2>>EOE != 0 + echo "a b" | for -w x + echo "x y" | for -w y + test -f $x$y + end + end + EOI + testscript:3:5: error: test exited with code 1 + info: test id: 1 + EOE + : var-value : $c <<EOI && $b >>EOO @@ -346,6 +359,19 @@ %.+ EOE + : nested-diag-test-id + : + $c <<EOI && $b 2>>EOE != 0 + for -w x <"a b" + for -w y <"x y" + test -f $x$y + end + end + EOI + testscript:3:5: error: test exited with code 1 + info: test id: 1 + EOE + : var-value : $c <<EOI && $b >>EOO |