Add some missing functions from the host class and utils
check_uptime, get_arch, get_kernel_ver, get_cmdline
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@797 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/utils.py b/server/utils.py
index acc57d2..cab27fa 100644
--- a/server/utils.py
+++ b/server/utils.py
@@ -239,6 +239,14 @@
return result
+def system(command, timeout=None, ignore_status=False):
+ return run(command, timeout, ignore_status).exit_status
+
+
+def system_output(command, timeout=None, ignore_status=False):
+ return run(command, timeout, ignore_status).stdout
+
+
def get_tmp_dir():
"""Return the pathname of a directory on the host suitable
for temporary file storage.