Update linus_stress to autocalculate memory
git-svn-id: http://test.kernel.org/svn/autotest/trunk@454 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/autotest_utils.py b/client/bin/autotest_utils.py
index db32da3..299ce45 100755
--- a/client/bin/autotest_utils.py
+++ b/client/bin/autotest_utils.py
@@ -423,3 +423,11 @@
if glibc_ver.split('.') < ver.split('.'):
raise "Glibc is too old (%s). Glibc >= %s is needed." % \
(glibc_ver, ver)
+
+def read_one_line(filename):
+ return open(filename, 'r').readline().strip()
+
+
+def write_one_line(filename, str):
+ str.rstrip()
+ open(filename, 'w').write(str.rstrip() + "\n")