Skip to content

Commit 4caccda

Browse files
committed
Added a test for --link-dest warning
1 parent ee189ce commit 4caccda

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

test/test-ghe-backup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,16 @@ begin_test "ghe-backup without manage-password file"
251251
[ ! -f "$GHE_DATA_DIR/current/manage-password" ]
252252
)
253253
end_test
254+
255+
begin_test "ghe-backup emtpy hookshot directory"
256+
(
257+
set -e
258+
259+
rm -rf $GHE_REMOTE_DATA_USER_DIR/hookshot/repository-*
260+
rm -rf $GHE_DATA_DIR/current/hookshot/repository-*
261+
ghe-backup
262+
263+
# Check that the "--link-dest arg does not exist" message hasn't occurred.
264+
[ ! "$(grep "[l]ink-dest arg does not exist" $TRASHDIR/out)" ]
265+
)
266+
end_test

0 commit comments

Comments
 (0)