@@ -242,14 +242,14 @@ def handle(self, test_spec, target_name, toolchain_name):
242
242
# Host test execution
243
243
start_host_exec_time = time ()
244
244
#test_result = self.run_simple_test(target_name, port, duration, verbose=opts.verbose)
245
- test_result = self .run_host_test (test .host_test , disk , port , duration )
245
+ test_result = self .run_host_test (test .host_test , disk , port , duration , opts . verbose )
246
246
elapsed_time = time () - start_host_exec_time
247
247
print print_test_result (test_result , target_name , toolchain_name ,
248
248
test_id , test_description , elapsed_time , duration )
249
249
return (test_result , target_name , toolchain_name ,
250
250
test_id , test_description , round (elapsed_time , 2 ), duration )
251
251
252
- def run_host_test (self , name , disk , port , duration , extra_serial = "" ):
252
+ def run_host_test (self , name , disk , port , duration , verbose = False , extra_serial = "" ):
253
253
# print "{%s} port:%s disk:%s" % (name, port, disk),
254
254
cmd = ["python" , "%s.py" % name , '-p' , port , '-d' , disk , '-t' , str (duration ), "-e" , extra_serial ]
255
255
proc = Popen (cmd , stdout = PIPE , cwd = HOST_TESTS )
@@ -284,6 +284,12 @@ def run_host_test(self, name, disk, port, duration, extra_serial=""):
284
284
# Stop test process
285
285
obs .stop ()
286
286
287
+ # Handle verbose mode
288
+ if verbose :
289
+ print "Test::Output::Start"
290
+ print "" .join (output )
291
+ print "Test::Output::Finish"
292
+
287
293
# Parse test 'output' data
288
294
result = self .TEST_RESULT_UNDEF
289
295
for line in "" .join (output ).splitlines ():
0 commit comments