From 7cba7b30e615e627984047b00cdd0de0b201efb5 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 25 Aug 2013 13:54:49 +0100 Subject: Check there are scenarios --- yarn.tests/no-scenarios.exit | 1 + yarn.tests/no-scenarios.script | 9 +++++++++ yarn.tests/no-scenarios.stderr | 1 + 3 files changed, 11 insertions(+) create mode 100644 yarn.tests/no-scenarios.exit create mode 100755 yarn.tests/no-scenarios.script create mode 100644 yarn.tests/no-scenarios.stderr (limited to 'yarn.tests') 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 < "$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. -- cgit v1.2.1