Running autotest_client should give the same exit status as running
autotest directly (i.e. non-zero on ABORT, zero otherwise). Also,
running autoserv should produce a non-zero exit code if it runs a
client-side test that is aborted, although this does not actually
abort the server-side job itself.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@944 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/autotest_client b/client/bin/autotest_client
index faa34a8..8a7830a 100755
--- a/client/bin/autotest_client
+++ b/client/bin/autotest_client
@@ -18,5 +18,5 @@
 autodir = os.path.dirname(sys.argv[0])
 autotest = os.path.join(autodir, 'autotest')
 cmd = ' '.join([autotest, '-H simple'] + sys.argv[1:])
-p = Popen(cmd, shell=True, stderr=STDOUT, close_fds=False)
-os.waitpid(p.pid, 0)
+exit_code = call(cmd, shell=True, stderr=STDOUT, close_fds=False)
+sys.exit(exit_code) # pass on the exit status from autotest