Skip to content

Commit

Permalink
CI: Fix transfer test
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Jun 21, 2020
1 parent be95283 commit 87747c3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/.lib/conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ wait_for_data_transferred() {
else
print_error "[Receive Error] Received data on ${recv_name} does not match expected data."
fi
kill_pid "${send_pid}" || true
if [ -n "${send_pid}" ]; then
kill_pid "${send_pid}" || true
fi
kill_pid "${recv_pid}" || true
print_test_datetime
exit 1
Expand Down Expand Up @@ -723,7 +725,9 @@ wait_for_data_transferred() {
else
print_error "[Receive Error] Received data on ${recv_name} does not match expected data."
fi
kill_pid "${send_pid}" || true
if [ -n "${send_pid}" ]; then
kill_pid "${send_pid}" || true
fi
kill_pid "${recv_pid}" || true
print_test_datetime
exit 1
Expand Down Expand Up @@ -772,7 +776,9 @@ wait_for_data_transferred() {
else
print_error "[Receive Error] Received data on ${recv_name} does not match expected data."
fi
kill_pid "${send_pid}" || true
if [ -n "${send_pid}" ]; then
kill_pid "${send_pid}" || true
fi
kill_pid "${recv_pid}" || true
print_test_datetime
exit 1
Expand Down

0 comments on commit 87747c3

Please sign in to comment.