From 68ae17932b8f8b5cf4bb37158902185517d9546e Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 28 Aug 2009 09:31:12 +0200 Subject: [PATCH] Add sleep after test with externally generated load Even if the load generating process is killed, there are probably some network packets queued for future sending and might influence future test. --- tests/ethflood.sh | 1 + tests/ethflood64k-w2.sh | 1 + tests/ethflood64k.sh | 1 + tests/ethload.sh | 1 + tests/ethloadsend.sh | 1 + 5 files changed, 5 insertions(+) diff --git a/tests/ethflood.sh b/tests/ethflood.sh index c54e0d0..b5c12dc 100755 --- a/tests/ethflood.sh +++ b/tests/ethflood.sh @@ -13,6 +13,7 @@ t() { kill $PID_S fi kill $PID_PING + sleep 1 # Wait for remote buffers to become empty done } diff --git a/tests/ethflood64k-w2.sh b/tests/ethflood64k-w2.sh index dcda4e0..0cb2db6 100755 --- a/tests/ethflood64k-w2.sh +++ b/tests/ethflood64k-w2.sh @@ -13,6 +13,7 @@ t() { kill $PID_S fi kill $PID_PING + sleep 1 # Wait for remote buffers to become empty done } diff --git a/tests/ethflood64k.sh b/tests/ethflood64k.sh index 98ea4fd..dcf1fe9 100755 --- a/tests/ethflood64k.sh +++ b/tests/ethflood64k.sh @@ -13,6 +13,7 @@ t() { kill $PID_S fi kill $PID_PING + sleep 1 # Wait for remote buffers to become empty done } diff --git a/tests/ethload.sh b/tests/ethload.sh index fd6eaf7..c584b94 100755 --- a/tests/ethload.sh +++ b/tests/ethload.sh @@ -13,6 +13,7 @@ t() { kill $PID_S fi kill $PID_LOAD + sleep 1 # Wait for remote buffers to become empty done } diff --git a/tests/ethloadsend.sh b/tests/ethloadsend.sh index 9ba99a8..1c41345 100755 --- a/tests/ethloadsend.sh +++ b/tests/ethloadsend.sh @@ -9,6 +9,7 @@ t() { vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 0 -c $COUNT kill $PID_S kill %% # Kill the whole pipe above + sleep 1 # Wait for ethernet buffers to become empty } -- 2.39.2