Skip to content

Commit

Permalink
Extra potential deadlock debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Apr 10, 2020
1 parent e0bc2a7 commit 8dc2a2a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/sharness/t0054-dag-car-import-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ reset_blockstore() {
do_import() {
node=$1; shift

bash -c "while [[ -e spin.gc ]]; do ipfsi $node repo gc >>gc_out 2>&1; done" & gc1_pid=$!
bash -c "while [[ -e spin.gc ]]; do ipfsi $node repo gc >>gc_out 2>&1; done" & gc2_pid=$!
touch spin.gc
timeout -s QUIT 15 bash -c "while [[ -e spin.gc ]]; do ipfsi $node repo gc 2>&1 >>gc_out; done" & gc1_pid=$!
timeout -s QUIT 15 bash -c "while [[ -e spin.gc ]]; do ipfsi $node repo gc 2>&1 >>gc_out; done" & gc2_pid=$!

ipfsi $node dag import "$@"
timeout -s QUIT 10 bash -c "ipfsi $node dag import $*"

rm -f spin.gc || true
sleep 3
kill $gc1_pid $gc2_pid || true
}

run_online_imp_exp_tests() {
Expand All @@ -56,7 +55,6 @@ EOE
EOE


touch spin.gc
test_expect_success "basic import" '
do_import 0 \
../t0054-dag-car-import-export-data/combined_naked_roots_genesis_and_128.car \
Expand Down Expand Up @@ -118,7 +116,6 @@ EOE
bash -c "sleep 60; kill $cat1_pid $cat2_pid 2>/dev/null" &
' &

touch spin.gc
test_expect_success "fifo import" '
do_import 0 \
pipe_testnet \
Expand Down

0 comments on commit 8dc2a2a

Please sign in to comment.