aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-16 18:22:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-16 18:22:22 +0300
commit32cac452a834605a15a679e247f0f5faf3f2fc5d (patch)
treeca8114e9465550ffab374d58403e8b1212888e3c /tests
parent320e849d17597aef40b9e3e62f79319f13f97e45 (diff)
Redo testscript diagnostics not to rely on invalid paths
Diffstat (limited to 'tests')
-rw-r--r--tests/test/script/runner/set.test9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test/script/runner/set.test b/tests/test/script/runner/set.test
index aebe9cb..b90bb14 100644
--- a/tests/test/script/runner/set.test
+++ b/tests/test/script/runner/set.test
@@ -254,7 +254,8 @@
$c <<EOI && $b 2>>EOE != 0
set -w x baz
EOI
- testscript:1:1: (x):1:1: error: expected '[' instead of 'x'
+ <attributes>:1:1: error: expected '[' instead of 'x'
+ testscript:1:1: info: while parsing attributes 'x'
EOE
: unknown
@@ -262,7 +263,8 @@
$c <<EOI && $b 2>>EOE != 0
set -w [x] baz
EOI
- testscript:1:1: ([x]):1:1: error: unknown value attribute x
+ <attributes>:1:1: error: unknown value attribute x
+ testscript:1:1: info: while parsing attributes '[x]'
EOE
: junk
@@ -270,6 +272,7 @@
$c <<EOI && $b 2>>EOE != 0
set -w '[string] x' baz
EOI
- testscript:1:1: ([string] x):1:10: error: trailing junk after ']'
+ <attributes>:1:10: error: trailing junk after ']'
+ testscript:1:1: info: while parsing attributes '[string] x'
EOE
}