aboutsummaryrefslogtreecommitdiffstats
path: root/func/cli.py
diff options
context:
space:
mode:
authorNauman Ahad <nauman.ahad@xflowresearch.com>2016-06-28 09:28:14 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-28 09:28:14 +0000
commit18d526d8e13ef7698a13e08a9f915d59d5d563a3 (patch)
tree5220f29aa83bd862dbf23d542ffff8c8be047512 /func/cli.py
parent94da6bec4d24c1b889e04c13db6b13d944e34644 (diff)
parent0537cab223ae76d501591e6a1e83aa3ea4fdec0e (diff)
Merge "Run the test only when ping ok and try ping 20 times."
Diffstat (limited to 'func/cli.py')
-rw-r--r--func/cli.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/func/cli.py b/func/cli.py
index 76e0e19a..129ab96c 100644
--- a/func/cli.py
+++ b/func/cli.py
@@ -93,16 +93,16 @@ class cli():
if len(vm_info) != 0:
vmObj =''
vmObj = SpawnVM(vm_info)
- obj.callpingtest()
- obj.callsshtest()
- obj.updateAnsible()
- dvr = Driver()
- dvr.drive_bench(benchmark,
- obj.roles_dict.items(),
- self._get_fname(benchmarks[items]),
- benchmark_details,
- obj.ip_pw_dict.items(),
- proxy_info)
+ if obj.callpingtest():
+ obj.callsshtest()
+ obj.updateAnsible()
+ dvr = Driver()
+ dvr.drive_bench(benchmark,
+ obj.roles_dict.items(),
+ self._get_fname(benchmarks[items]),
+ benchmark_details,
+ obj.ip_pw_dict.items(),
+ proxy_info)
else:
print (benchmarks[items], ' is not a Template in the Directory - \
Enter a Valid file name. or use qtip.py -h for list')