summaryrefslogtreecommitdiff
path: root/yarn.tests
diff options
context:
space:
mode:
Diffstat (limited to 'yarn.tests')
-rwxr-xr-xyarn.tests/warn-if-empty.script10
1 files changed, 10 insertions, 0 deletions
diff --git a/yarn.tests/warn-if-empty.script b/yarn.tests/warn-if-empty.script
new file mode 100755
index 0000000..7a5c028
--- /dev/null
+++ b/yarn.tests/warn-if-empty.script
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -eu
+
+touch "$DATADIR/empty.yarn"
+
+# The grep below will fail unless the string exists, thereby failing the
+# entire test.
+./yarn --log=/dev/stdout "$DATADIR/empty.yarn" |
+ grep 'No scenario code blocks' > /dev/null