summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2013-01-30 18:08:15 -0500
committerBill Peck <bpeck@redhat.com>2013-01-30 18:08:15 -0500
commite16b0600cf1798267dc5722d39fc03e1e135e1f6 (patch)
treee6d8b318fdc32d6235036f30fa21f91090cb8db1 /kernel
parent3641fc26b8db4921d961468b8c9ecceae3fd4eab (diff)
downloadtests-e16b0600cf1798267dc5722d39fc03e1e135e1f6.tar.gz
tests-e16b0600cf1798267dc5722d39fc03e1e135e1f6.tar.xz
tests-e16b0600cf1798267dc5722d39fc03e1e135e1f6.zip
fix negative testing logic
Diffstat (limited to 'kernel')
-rwxr-xr-xkernel/networking/libvirt/netperf-client/runtest.sh2
-rwxr-xr-xkernel/networking/libvirt/ping/runtest.sh2
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