aboutsummaryrefslogtreecommitdiffstats
path: root/func/cli.py
diff options
context:
space:
mode:
authorMofassirArif <Mofassir_Arif@dellteam.com>2016-01-28 04:29:29 -0800
committerNauman Ahad <nauman.ahad@xflowresearch.com>2016-02-01 22:35:33 +0000
commitf2b895c2b5df03a6b726f58eac456dad9cf54e34 (patch)
tree7a516390c4139b019c5f50f4675b9487956a476d /func/cli.py
parent70326a8fd57f115f6d0889cfddada7c6945a691b (diff)
qtip: add condition for switching user to joid.
Change-Id: I9898a4eb21fb197a59fc72686d156eb4ef115388 Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com> (cherry picked from commit 4c27a6b94a0664418664569384ce236159385c71)
Diffstat (limited to 'func/cli.py')
-rw-r--r--func/cli.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/func/cli.py b/func/cli.py
index 9b140874..a99e9d0f 100644
--- a/func/cli.py
+++ b/func/cli.py
@@ -43,6 +43,10 @@ class cli():
else:
return False
+ def _get_fname(self,file_name):
+
+ return file_name[0: file_name.find('.')]
+
def __init__(self):
suite=[]
@@ -93,7 +97,11 @@ class cli():
obj.callsshtest()
obj.updateAnsible()
dvr = Driver()
- dvr.drive_bench(benchmark, obj.roles_dict.items(), benchmark_details, obj.ip_pw_dict.items())
+ dvr.drive_bench(benchmark,
+ obj.roles_dict.items(),
+ self._get_fname(benchmarks[items]),
+ benchmark_details,
+ obj.ip_pw_dict.items())
else:
print (args.benchmark, ' is not a Template in the Directory - \
Enter a Valid file name. or use qtip.py -h for list')