@@ -163,7 +163,7 @@ def take_screenshot(endpoint,container_tag):
163
163
# Main container test logic
164
164
def container_test (tag ):
165
165
# Start the container
166
- print ('Starting ' tag )
166
+ print ('Starting ' + tag )
167
167
container = client .containers .run (image + ':' + tag ,
168
168
detach = True ,
169
169
environment = dockerenv )
@@ -181,10 +181,10 @@ def container_test(tag):
181
181
print (error )
182
182
remove_container (container )
183
183
if logsfound == True :
184
- print ('Startup completed for ' tag )
184
+ print ('Startup completed for ' + tag )
185
185
report_tests .append (['Startup ' + tag ,'PASS' ])
186
186
elif logsfound == False :
187
- print ('Startup failed for ' tag )
187
+ print ('Startup failed for ' + tag )
188
188
report_tests .append (['Startup ' + tag ,'FAIL INIT NOT FINISHED' ])
189
189
mark_fail ()
190
190
if screenshot == 'true' :
@@ -199,7 +199,7 @@ def container_test(tag):
199
199
ip = container .attrs ["NetworkSettings" ]["Networks" ]["bridge" ]["IPAddress" ]
200
200
take_screenshot (proto + webauth + '@' + ip + ':' + port + webpath ,tag )
201
201
# Dump package information
202
- print ('Dumping package info for ' tag )
202
+ print ('Dumping package info for ' + tag )
203
203
if base == 'alpine' :
204
204
command = 'apk info -v'
205
205
elif base == 'debian' or base == 'ubuntu' :
@@ -208,7 +208,7 @@ def container_test(tag):
208
208
info = container .exec_run (command )
209
209
packages = info [1 ].decode ("utf-8" )
210
210
report_tests .append (['Dump Versions ' + tag ,'PASS' ])
211
- print ('Got Package info for ' tag )
211
+ print ('Got Package info for ' + tag )
212
212
except Exception as error :
213
213
print (error )
214
214
report_tests .append (['Dump Versions ' + tag ,'FAIL' ])
0 commit comments