add bash_shared_mapping test

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@416 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/autotest_utils.py b/client/bin/autotest_utils.py
index 3947284..23f3bf8 100755
--- a/client/bin/autotest_utils.py
+++ b/client/bin/autotest_utils.py
@@ -281,6 +281,13 @@
 			cpus += 1
 	return cpus
 
+
+# Returns total memory in kb
+def memtotal():
+	memtotal = system_output('grep MemTotal /proc/meminfo')
+	return int(re.search(r'\d+', memtotal).group(0))
+
+
 def system(cmd, ignorestatus = 0):
 	"""os.system replacement