summaryrefslogtreecommitdiff
path: root/yarn.tests/warn-if-empty.script
blob: 3594929144738eabd6576385e8dbc505a68e5263 (plain)
1
2
3
4
5
6
7
8
9
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" 2>&1 |
    grep 'No scenario code blocks' > /dev/null