diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-08-25 13:27:01 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-08-25 13:27:01 +0100 |
commit | 0f7cfd5fc4f94446c54bb2712eb0aaf5043f7cd5 (patch) | |
tree | a432ca2a6446e1cf8e9f7efb43ecff172ddd7f71 | |
parent | a3bfd4de13e415c3c8267762311340579967cbbb (diff) | |
download | cmdtest-0f7cfd5fc4f94446c54bb2712eb0aaf5043f7cd5.tar.gz |
Add test for duplicate scenario names failing
-rw-r--r-- | yarn.tests/duplicate-scenario-names.exit | 1 | ||||
-rwxr-xr-x | yarn.tests/duplicate-scenario-names.script | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/yarn.tests/duplicate-scenario-names.exit b/yarn.tests/duplicate-scenario-names.exit new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/yarn.tests/duplicate-scenario-names.exit @@ -0,0 +1 @@ +1 diff --git a/yarn.tests/duplicate-scenario-names.script b/yarn.tests/duplicate-scenario-names.script new file mode 100755 index 0000000..770f00a --- /dev/null +++ b/yarn.tests/duplicate-scenario-names.script @@ -0,0 +1,18 @@ +#!/bin/sh + +set -eu + + +cat <<EOF > "$DATADIR/test.yarn" + SCENARIO foo + THEN nop + + SCENARIO foo + THEN nop + + IMPLEMENTS THEN nop + true +EOF + +./run-yarn "$DATADIR/test.yarn" + |