From e16b0600cf1798267dc5722d39fc03e1e135e1f6 Mon Sep 17 00:00:00 2001 From: Bill Peck Date: Wed, 30 Jan 2013 18:08:15 -0500 Subject: fix negative testing logic --- kernel/networking/libvirt/netperf-client/runtest.sh | 2 +- kernel/networking/libvirt/ping/runtest.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/networking/libvirt/netperf-client/runtest.sh b/kernel/networking/libvirt/netperf-client/runtest.sh index feb4217..723b271 100755 --- a/kernel/networking/libvirt/netperf-client/runtest.sh +++ b/kernel/networking/libvirt/netperf-client/runtest.sh @@ -51,7 +51,7 @@ for guest in $GUESTS; do ../common/autologin.exp $guest "netperf -4 -H $addr -l $PERF_TIME" || fail VALID done for addr in $invalid_addrs; do - ../common/autologin.exp $guest "netperf -4 -H $addr -l $PERF_TIME" || fail INVALID + ../common/autologin.exp $guest "netperf -4 -H $addr -l $PERF_TIME" && fail INVALID done unset IFS done diff --git a/kernel/networking/libvirt/ping/runtest.sh b/kernel/networking/libvirt/ping/runtest.sh index 1cad848..a507ba1 100755 --- a/kernel/networking/libvirt/ping/runtest.sh +++ b/kernel/networking/libvirt/ping/runtest.sh @@ -54,7 +54,7 @@ for guest in $GUESTS; do ../common/autologin.exp $guest "ping -c $PING_COUNT -i 0.2 -s $PING_SIZE $addr" || fail VALID done for addr in $invalid_addrs; do - ../common/autologin.exp $guest "ping -c $PING_COUNT -i 0.2 -s $PING_SIZE $addr" || fail INVALID + ../common/autologin.exp $guest "ping -c $PING_COUNT -i 0.2 -s $PING_SIZE $addr" && fail INVALID done unset IFS done -- cgit