summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-02-12 13:58:35 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-02-12 13:58:35 +0000
commitb3b93e138ba16645dd0f55cae4e89577949bcb81 (patch)
tree8c31183bd877bc3d8db4fe9ea9f78dca179a2f15 /testing
parent82087d7f3c725ef954d0e45a94bc46fc2dd63c76 (diff)
downloadgitano-b3b93e138ba16645dd0f55cae4e89577949bcb81.tar.gz
adds support for expecting failure on a push
Diffstat (limited to 'testing')
-rw-r--r--testing/library.yarn7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/library.yarn b/testing/library.yarn
index 2ce4436..4d61251 100644
--- a/testing/library.yarn
+++ b/testing/library.yarn
@@ -75,8 +75,11 @@ Repository access
$GTT clone $MATCH_1 $MATCH_2 "$MATCH_3" "$MATCH_4" ${MATCH_5:+ --no-local --depth="$MATCH_6"} \
>$DATADIR/stdout 2>$DATADIR/stderr
- IMPLEMENTS WHEN ([a-z][a-z0-9]*),? using ([a-z][a-z0-9]*),? pushes ([^ ]+) to ([^ ]+)
- $GTT push $MATCH_1 $MATCH_2 "$MATCH_3" "$MATCH_4"
+ IMPLEMENTS WHEN ([a-z][a-z0-9]*),? using ([a-z][a-z0-9]*),? (expecting failure,? )?pushes ([^ ]+) to ([^ ]+)
+ if $GTT push $MATCH_1 $MATCH_2 "$MATCH_4" "$MATCH_5" \
+ >$DATADIR/stdout 2>$DATADIR/stderr; then
+ test "$MATCH_3" = ""
+ fi
IMPLEMENTS WHEN ([a-z][a-z0-9]*),? using ([a-z][a-z0-9]*),? (expecting failure,? )?destroys ([^ ]+) using the (.+) token
if $GTT runcommand $MATCH_1 $MATCH_2 \