def Cleanup(self): if self.self_script: test.CheckedUnlink(self.self_script)
def AfterRun(self, result): if self.self_script and (not result or (not result.HasPreciousOutput())): test.CheckedUnlink(self.self_script)