summaryrefslogtreecommitdiff
path: root/yarn.tests/warn-if-empty.script
blob: 03be52d002af095446d795797b9e908fec16506e (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.
./run-yarn --no-quiet --log=/dev/stdout "$DATADIR/empty.yarn" 2>&1 |
    grep 'No scenario code blocks' > /dev/null