From c54bcf443bb1243d9cb14fef598b3901dd66f51e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 23 Jun 2013 09:27:14 +0100 Subject: Add warning when an input file has no scenario code blocks --- yarn.tests/warn-if-empty.script | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 yarn.tests/warn-if-empty.script (limited to 'yarn.tests') 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 -- cgit v1.2.1