Add framework for Test Planner execution engine, and the supporting RPC
interfaces
Signed-off-by: James Ren <jamesren@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4260 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/utils.py b/client/common_lib/utils.py
index b42415e..a36b1d5 100644
--- a/client/common_lib/utils.py
+++ b/client/common_lib/utils.py
@@ -182,6 +182,14 @@
return open(filename, 'r').readline().rstrip('\n')
+def read_file(filename):
+ f = open(filename)
+ try:
+ return f.read()
+ finally:
+ f.close()
+
+
def write_one_line(filename, line):
open_write_close(filename, line.rstrip('\n') + '\n')