aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/runner/set.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-11-17 01:52:51 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-11-17 12:03:36 +0300
commit83005f5c8de788f3b2fec9b186a766814004895d (patch)
tree0ecef30660bee50827bce49a87e003475e9dba0c /tests/test/script/runner/set.testscript
parent35e4dda6c64716bc04627d7544ccb3ee9a07616e (diff)
Print id of failed test
Diffstat (limited to 'tests/test/script/runner/set.testscript')
-rw-r--r--tests/test/script/runner/set.testscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test/script/runner/set.testscript b/tests/test/script/runner/set.testscript
index b10ce1e..62f5b24 100644
--- a/tests/test/script/runner/set.testscript
+++ b/tests/test/script/runner/set.testscript
@@ -11,6 +11,7 @@
:
$c <'set foo | cat >bar' && $b 2>>EOE != 0
testscript:1:1: error: set builtin must be the last pipe command
+ info: test id: 1
EOE
: redirecting
@@ -20,12 +21,14 @@
:
$c <'set foo >bar' && $b 2>>EOE != 0
testscript:1:1: error: set builtin stdout cannot be redirected
+ info: test id: 1
EOE
: stderr
:
$c <'set foo 2>bar' && $b 2>>EOE != 0
testscript:1:1: error: set builtin stderr cannot be redirected
+ info: test id: 1
EOE
}
@@ -33,6 +36,7 @@
:
$c <'set foo == 1' && $b 2>>EOE != 0
testscript:1:1: error: set builtin exit code cannot be non-zero
+ info: test id: 1
EOE
}
@@ -43,24 +47,28 @@
:
$c <'set -e' && $b 2>>EOE != 0
testscript:1:1: error: missing variable name
+ info: test id: 1
EOE
: unexpected
:
$c <'set foo bar baz' && $b 2>>EOE != 0
testscript:1:1: error: unexpected argument
+ info: test id: 1
EOE
: empty-attrs
:
$c <"set '' baz" && $b 2>>EOE != 0
testscript:1:1: error: empty variable attributes
+ info: test id: 1
EOE
: empty-var
:
$c <"set ''" && $b 2>>EOE != 0
testscript:1:1: error: empty variable name
+ info: test id: 1
EOE
}
@@ -256,6 +264,7 @@
EOI
<attributes>:1:1: error: expected '[' instead of 'x'
testscript:1:1: info: while parsing attributes 'x'
+ info: test id: 1
EOE
: unknown
@@ -265,6 +274,7 @@
EOI
<attributes>:1:1: error: unknown value attribute x
testscript:1:1: info: while parsing attributes '[x]'
+ info: test id: 1
EOE
: junk
@@ -274,5 +284,6 @@
EOI
<attributes>:1:10: error: trailing junk after ']'
testscript:1:1: info: while parsing attributes '[string] x'
+ info: test id: 1
EOE
}