From ef7cb7ea3e6fcb21a4fcf38602b3f43f03232ace Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Dec 2016 17:08:31 +0200 Subject: Implement testscript variable-if Now a variable-only if is treated the same as a single variable when deciding whether it is part of a test or setup/teardown. --- unit-tests/test/script/parser/description.test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'unit-tests') diff --git a/unit-tests/test/script/parser/description.test b/unit-tests/test/script/parser/description.test index b4ab435..16ba287 100644 --- a/unit-tests/test/script/parser/description.test +++ b/unit-tests/test/script/parser/description.test @@ -222,6 +222,23 @@ EOI testscript:2:1: error: description before setup/teardown variable EOE +$* <>EOE != 0 # illegal-var-if +: foo +if true + x = y +end +EOI +testscript:2:1: error: description before/after setup/teardown variable-if +EOE + +$* <>EOE != 0 # illegal-var-if-after +if true + x = y +end : foo +EOI +testscript:1:1: error: description before/after setup/teardown variable-if +EOE + $* <>EOE != 0 # illegal-test cmd1; : foo -- cgit v1.1