diff --git a/lib/abf_worker/rpm_worker_observer.rb b/lib/abf_worker/rpm_worker_observer.rb index 0fb71ef78..86c7ae93b 100644 --- a/lib/abf_worker/rpm_worker_observer.rb +++ b/lib/abf_worker/rpm_worker_observer.rb @@ -34,8 +34,8 @@ module AbfWorker when STARTED subject.start_build when CANCELED + item.update_attributes({status: BuildList::BUILD_CANCELED}) unless reruninng_tests || subject.tests_failed? subject.build_canceled - item.update_attributes({status: BuildList::BUILD_CANCELED}) unless reruninng_tests when TESTS_FAILED subject.tests_failed end