[gnome-boxes] tests: Faster ping checks
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] tests: Faster ping checks
- Date: Fri, 19 Jun 2015 14:23:54 +0000 (UTC)
commit 9ade4bab2f1b4ff15613c4e15041427f9c85bf96
Author: Vladimir Benes <benesv email cz>
Date: Thu Jun 18 23:02:33 2015 +0200
tests: Faster ping checks
Various ping options makes ping checks far quicker. Successful ping
is 1 second quicker and unsuccessful ping check is done in 1 second
instead of 10!
https://bugzilla.gnome.org/show_bug.cgi?id=751042
tests/steps/utils.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/steps/utils.py b/tests/steps/utils.py
index 3571834..54971e6 100644
--- a/tests/steps/utils.py
+++ b/tests/steps/utils.py
@@ -28,7 +28,7 @@ def get_showing_node_rolename(rolename, parent, timeout=30, step=0.25):
@step('Cannot ping "{vm}"')
def cannot_ping_vm(context, vm):
- cmd = "ping -qn -c 1 %s" %context.ips[vm]
+ cmd = "ping -qn -W1 -s1 -l2 -c1 %s" %context.ips[vm]
assert call(cmd, shell=True) != 0, "Machine %s is pingable!" %vm
@step('Close warning')
@@ -65,7 +65,7 @@ def check_pattern_not_visible(context, pattern, command):
@step('Ping "{vm}"')
def ping_vm(context, vm):
- cmd = "ping -qn -c 2 %s > /dev/null 2>&1" %context.ips[vm]
+ cmd = "ping -qn -W1 -s1 -l2 -c2 %s > /dev/null 2>&1" %context.ips[vm]
assert call(cmd, shell=True) == 0, "Machine %s is not pingable" %vm
@step('Press "{button}"')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]