Exemple #1
0
 def review_patch(self, patch):
     task = EarlyWarningSystemTask(self, patch, self._options.run_tests)
     if not task.validate():
         self._did_error(patch, "%s did not process patch." % self.name)
         return False
     try:
         return task.run()
     except UnableToApplyPatch, e:
         self._did_error(patch, "%s unable to apply patch." % self.name)
         return False
Exemple #2
0
 def review_patch(self, patch):
     task = EarlyWarningSystemTask(self, patch, self._options.run_tests)
     if not task.validate():
         self._did_error(patch, "%s did not process patch." % self.name)
         return False
     try:
         return task.run()
     except UnableToApplyPatch, e:
         self._did_error(patch, "%s unable to apply patch." % self.name)
         return False
Exemple #3
0
 def review_patch(self, patch):
     task = EarlyWarningSystemTask(self, patch, self._options.run_tests)
     if not task.validate():
         self._did_error(patch, "%s did not process patch." % self.name)
         return False
     try:
         succeeded = task.run()
         if not succeeded:
             # Caller unlocks when review_patch returns True, so we only need to unlock on transient failure.
             self._unlock_patch(patch)
         return succeeded
     except UnableToApplyPatch, e:
         self._did_error(patch, "%s unable to apply patch." % self.name)
         return False