summaryrefslogtreecommitdiff
path: root/yarn.tests/finally.script
blob: 4e05d2e57e146c0c371aa30ff91fbaf8d2e8d276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -eu

cat <<EOF > "$DATADIR/finally.yarn"
    SCENARIO finally
    GIVEN nothing
    WHEN nothing
    THEN nothing
    FINALLY yeehaa

    IMPLEMENTS GIVEN nothing
    true

    IMPLEMENTS WHEN nothing
    true

    IMPLEMENTS THEN nothing
    true

    IMPLEMENTS FINALLY yeehaa
    touch "$DATADIR/finally.has.run"
EOF

./run-yarn "$DATADIR/finally.yarn"
test -e "$DATADIR/finally.has.run"