tests: prevent updating results if results contain 'failed'

This commit is contained in:
Moritz Bunkus 2021-03-20 13:15:22 +01:00
parent 889d3910ef
commit 12284bf662
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -134,7 +134,9 @@ class Controller
idx += 1 unless command[:no_result]
end
if (update_failed)
if (update_failed && actual_results.include?("failed"))
self.add_result class_name, :failed, :message => msg + " FATAL: cannot update result as test results include 'failed'"
elsif (update_failed)
self.add_result class_name, :passed, :message => msg + " UPDATING result\n", :checksum => result, :duration => duration
else
self.add_result class_name, :failed, :message => msg