Skip to content

Commit 1638a62

Browse files
committed
Merge branch 'sg/fast-import-dump-refs-on-checkpoint-fix'
Test update. * sg/fast-import-dump-refs-on-checkpoint-fix: t9300: wait for background fast-import process to die after killing it
2 parents ae4e3f4 + ab29f1b commit 1638a62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/t9300-fast-import.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,10 @@ background_import_then_checkpoint () {
31473147
echo $! >V.pid
31483148
# We don't mind if fast-import has already died by the time the test
31493149
# ends.
3150-
test_when_finished "exec 8>&-; exec 9>&-; kill $(cat V.pid) || true"
3150+
test_when_finished "
3151+
exec 8>&-; exec 9>&-;
3152+
kill $(cat V.pid) && wait $(cat V.pid)
3153+
true"
31513154

31523155
# Start in the background to ensure we adhere strictly to (blocking)
31533156
# pipes writing sequence. We want to assume that the write below could

0 commit comments

Comments
 (0)