summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe NOEL2012-12-12 14:19:53 +0100
committerJean-Philippe NOEL2013-01-02 14:03:11 +0100
commit4b30e6dd2c5f7d8cf884730c2e728fe11b8bee97 (patch)
treedfb6d6fafd14d63756a1f7fe116ca6f757128f6b
parent663d0993624e3671a934866845e2712ab05be9a1 (diff)
validation/validlib: implement the missing iperf.check_token/1 function, closes #3584
-rw-r--r--validation/validlib/iperf.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/validation/validlib/iperf.py b/validation/validlib/iperf.py
index d078c23bbc..816de0b4fc 100644
--- a/validation/validlib/iperf.py
+++ b/validation/validlib/iperf.py
@@ -58,9 +58,12 @@ def update_config(new_config):
def check_tokens():
for host in ["host_a", "host_b"]:
- user = config[host]["user"]
- non_plc_ip_address = config[host]["non_plc_ip_address"]
- host_token.check(user, non_plc_ip_address)
+ check_token(host)
+
+def check_token(host):
+ user = config[host]["user"]
+ non_plc_ip_address = config[host]["non_plc_ip_address"]
+ host_token.check(user, non_plc_ip_address)
def clear_tokens():
for host in ["host_a", "host_b"]: