Add a get_disks check to autotest_utils
git-svn-id: http://test.kernel.org/svn/autotest/trunk@972 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/autotest_utils.py b/client/bin/autotest_utils.py
index 24e6b27..f24ea5f 100755
--- a/client/bin/autotest_utils.py
+++ b/client/bin/autotest_utils.py
@@ -552,6 +552,10 @@
else:
raise TestError('Could not get valid cpu family data')
+def get_disks():
+ df_output = system_output('df')
+ disk_re = re.compile(r'^(/dev/hd[a-z]+)3', re.M)
+ return disk_re.findall(df_output)
try:
from site_utils import *