Skip to content
Snippets Groups Projects
Commit e327b7a7 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Corrected check PASSED with get_test_result().

parent f787f12a
No related branches found
No related tags found
No related merge requests found
...@@ -171,10 +171,12 @@ def get_test_result(machines): ...@@ -171,10 +171,12 @@ def get_test_result(machines):
tc.set_result('FAILED') tc.set_result('FAILED')
elif cm.find_string_in_file(logFilename, 'Test result: PASSED')>=0: elif cm.find_string_in_file(logFilename, 'Test result: PASSED')>=0:
tc.append_log(3, '%s test went OK' % mi) tc.append_log(3, '%s test went OK' % mi)
elif cm.find_string_in_file(logFilename, 'Utility result: PASSED')>=0:
tc.append_log(3, '%s test went OK' % mi)
else: else:
# This check will detect if the command did not complete on the machine, e.g. due to a Python error in the script # This check will detect if the command did not complete on the machine, e.g. due to a Python error in the script
tc.append_log(2, '%s test result unknown' % mi) tc.append_log(2, '%s test result unknown' % mi)
tc.set_result('FAILED') #tc.set_result('FAILED')
############################################################################### ###############################################################################
...@@ -214,7 +216,7 @@ for lcu in LCUS: ...@@ -214,7 +216,7 @@ for lcu in LCUS:
tc.append_log_file(3, log_filename) tc.append_log_file(3, log_filename)
# Update machine test result in global tc object # Update machine test result in global tc object
get_test_result(MACHINES) get_test_result(LCUS)
################################################################################ ################################################################################
## Run commands that simulatenously dishes and central in foreground ## Run commands that simulatenously dishes and central in foreground
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment