summaryrefslogtreecommitdiff
path: root/yarn.tests
diff options
context:
space:
mode:
Diffstat (limited to 'yarn.tests')
-rw-r--r--yarn.tests/no-scenarios.exit1
-rwxr-xr-xyarn.tests/no-scenarios.script9
-rw-r--r--yarn.tests/no-scenarios.stderr1
3 files changed, 11 insertions, 0 deletions
diff --git a/yarn.tests/no-scenarios.exit b/yarn.tests/no-scenarios.exit
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/yarn.tests/no-scenarios.exit
@@ -0,0 +1 @@
+1
diff --git a/yarn.tests/no-scenarios.script b/yarn.tests/no-scenarios.script
new file mode 100755
index 0000000..ffd8e96
--- /dev/null
+++ b/yarn.tests/no-scenarios.script
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -eu
+
+
+cat <<EOF > "$DATADIR/test.yarn"
+EOF
+
+./run-yarn "$DATADIR/test.yarn"
diff --git a/yarn.tests/no-scenarios.stderr b/yarn.tests/no-scenarios.stderr
new file mode 100644
index 0000000..66311c1
--- /dev/null
+++ b/yarn.tests/no-scenarios.stderr
@@ -0,0 +1 @@
+ERROR: There are no scenarios; must have at least one.