Fix disktest so it works by default with no paramters.
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1084 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/disktest/disktest.py b/client/tests/disktest/disktest.py
index 41d5521..219b3a7 100755
--- a/client/tests/disktest/disktest.py
+++ b/client/tests/disktest/disktest.py
@@ -24,9 +24,12 @@
return(p.pid)
- def execute(self, disks, gigabytes = None, chunk_mb = memtotal()/1024):
+ def execute(self, disks = None, gigabytes = None,
+ chunk_mb = memtotal() / 1024):
os.chdir(self.srcdir)
+ if not disks:
+ disks = [self.tmpdir]
if not gigabytes:
free = 100 # cap it at 100GB by default
for disk in disks: