Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1247 from chavafg/topic/fix-soak-test
Browse files Browse the repository at this point in the history
soak_test: don't check for proxy process if using vsocks
  • Loading branch information
GabyCT authored Feb 27, 2019
2 parents 799188b + 66b9bf8 commit 54e02fb
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions integration/stability/soak_parallel_rm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,10 @@ check_all_running() {
# Only check for Kata components if we are using a Kata runtime
if (( $check_kata_components )); then
if [ "$KATA_HYPERVISOR" == "qemu" ]; then
# Check we have one proxy per container
how_many_proxys=$(pgrep -a -f ${PROXY_PATH} | wc -l)
if check_vsock_active; then
if (( ${how_many_proxys} != 0 )); then
echo "Wrong number of proxys running (${how_many_running} containers, ${how_many_proxys} proxys)"
echo "When using vsocks, the number of proxies should be Zero - stopping"
((goterror++))
fi

else
# Only run proxy check if vsock is disabled
if ! check_vsock_active; then
# Check we have one proxy per container
how_many_proxys=$(pgrep -a -f ${PROXY_PATH} | wc -l)
if (( ${how_many_running} != ${how_many_proxys} )); then
echo "Wrong number of proxys running (${how_many_running} containers, ${how_many_proxys} proxys) - stopping"
((goterror++))
Expand Down

0 comments on commit 54e02fb

Please sign in to comment.