Skip to content

Commit 4982667

Browse files
committed
Assert non-zero exit status
1 parent 839e442 commit 4982667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test-ghe-restore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ begin_test "ghe-restore cluster backup to non-cluster appliance"
506506
mkdir -p "$GHE_REMOTE_DATA_USER_DIR/repositories"
507507

508508
echo "cluster" > "$GHE_DATA_DIR/current/strategy"
509-
output=$(ghe-restore -v -f localhost 2>&1) || true
509+
! output=$(ghe-restore -v -f localhost 2>&1)
510510

511511
echo $output | grep -q "Snapshot from a GitHub Enterprise cluster cannot be restored"
512512
)

0 commit comments

Comments
 (0)