aboutsummaryrefslogtreecommitdiffstats
path: root/func/driver.py
diff options
context:
space:
mode:
authorMofassirArif <Mofassir_Arif@dellteam.com>2016-01-21 06:42:23 -0800
committerNauman Ahad <nauman.ahad@xflowresearch.com>2016-02-01 22:27:40 +0000
commit30f974a996efbb4b7f7b4fc3a47a1454c3fe80e5 (patch)
treeee1d930fca39fa6875de6e18a2ae3dd9dba6f70f /func/driver.py
parentc013d5c523c42221f2c3594f0a751e9181b80a6b (diff)
bug fix: result collection bug fix for docker images
Change-Id: Ia4ea09b90c7a4f4e3699af456c6d66e85661cc0b Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com> (cherry picked from commit 971a7c98515a9d83661f5e423f7e8390f35dca59)
Diffstat (limited to 'func/driver.py')
-rw-r--r--func/driver.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/func/driver.py b/func/driver.py
index 7ccbb0c0..d20c0e9f 100644
--- a/func/driver.py
+++ b/func/driver.py
@@ -18,6 +18,7 @@ class Driver:
def __init__(self):
print "Class driver initialized\n"
+ print os.environ['PWD']
self.dic_json = defaultdict()
def drive_bench(self, benchmark, roles, benchmark_detail= None, pip_dict = None):
@@ -30,6 +31,7 @@ class Driver:
self.dic_json['ip1']=''
self.dic_json['ip2']=''
self.dic_json['installer']=str(os.environ['INSTALLER_TYPE'])
+ self.dic_json['workingdir']=str(os.environ['PWD'])
for k,v in benchmark_detail:
self.dic_json[k]=v
for k, v in roles:
@@ -40,7 +42,7 @@ class Driver:
if k == '1-server':
print values, 'saving IP'
self.dic_json['ip'+str(index)]= str(values)
- if pip_dict[0][1][0]:
+ if pip_dict[0][1][0]:
self.dic_json['privateip'+str(index)] = pip_dict[0][1]
if not pip_dict[0][1][0]:
self.dic_json['privateip'+str(index)] = 'NONE'