From 74eea8fe332c05774f108c5094eb335e58f44cfa Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 14 Oct 2022 13:43:32 +0300 Subject: Fix printing test id multiple times on test failure --- tests/test/script/runner/for.testscript | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests') 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 <>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 <>EOO @@ -346,6 +359,19 @@ %.+ EOE + : nested-diag-test-id + : + $c <>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 <>EOO -- cgit v1.1