Skip to content

Commit 4d6e261

Browse files
committed
Add test for cleanup process
1 parent bc97d5a commit 4d6e261

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/test-ghe-backup.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ begin_test "ghe-backup tarball strategy"
230230
)
231231
end_test
232232

233-
begin_test "ghe-backup fails fast when other run in progress"
233+
begin_test "ghe-backup fails fast when old style run in progress"
234234
(
235235
set -e
236236

@@ -241,6 +241,18 @@ begin_test "ghe-backup fails fast when other run in progress"
241241
)
242242
end_test
243243

244+
begin_test "ghe-backup cleans up stale in-progress file"
245+
(
246+
set -e
247+
248+
echo "20150928T153353 99999" > "$GHE_DATA_DIR/in-progress"
249+
ghe-backup
250+
251+
[ ! -f "$GHE_DATA_DIR/in-progress" ]
252+
)
253+
end_test
254+
255+
244256
begin_test "ghe-backup without manage-password file"
245257
(
246258
set -e

0 commit comments

Comments
 (0)