Get rid of the job.aborted flag. It's not necessary, and it actually
makes it impossible to supress client job abortions (e.g. if the
server-sysinfo client job aborts, we don't abort the server job).
Risk: Low
Visibility: autoserv won't return non-zero codes on non-aborted jobs
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2362 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autoserv b/server/autoserv
index dc996d2..6306a4d 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -158,13 +158,12 @@
finally:
job.cleanup_parser()
except:
- job.aborted = True
+ exit_code = 1
traceback.print_exc()
pid_file_manager.num_tests_failed = job.num_tests_failed
- if getattr(job, 'aborted', False):
- sys.exit(1)
+ sys.exit(exit_code)
def main():