diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-08-19 18:53:54 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-08-19 18:53:54 +0100 |
commit | a3bfd4de13e415c3c8267762311340579967cbbb (patch) | |
tree | 834cc989d7a225bd34f0b1060921d4d97490924d /yarn.tests/no-then.script | |
parent | 3ca820dce1960509a29688f170538cb4ca5ac577 (diff) | |
download | cmdtest-a3bfd4de13e415c3c8267762311340579967cbbb.tar.gz |
Complain if a scenario has no THENs
Diffstat (limited to 'yarn.tests/no-then.script')
-rwxr-xr-x | yarn.tests/no-then.script | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yarn.tests/no-then.script b/yarn.tests/no-then.script new file mode 100755 index 0000000..491853f --- /dev/null +++ b/yarn.tests/no-then.script @@ -0,0 +1,14 @@ +#!/bin/sh + +set -eu + + +cat <<EOF > "$DATADIR/1.yarn" + SCENARIO foo + WHEN doing ok + + IMPLEMENTS WHEN doing ok + true +EOF + +./run-yarn "$DATADIR/1.yarn" |