Risk: Required at this point
Visibilty: Under the hood
Here is an update to all public tests adding imports where they were missing
and removing import *
Signed-off-by: Scott Zawalski <scottz@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1605 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/fsfuzzer/fsfuzzer.py b/client/tests/fsfuzzer/fsfuzzer.py
index a39f25e..5abda51 100755
--- a/client/tests/fsfuzzer/fsfuzzer.py
+++ b/client/tests/fsfuzzer/fsfuzzer.py
@@ -1,27 +1,29 @@
-import test
-from autotest_utils import *
+from autotest_lib.client.bin import test, autotest_utils
+from autotest_lib.client.bin import utils
+
class fsfuzzer(test.test):
version = 1
# http://people.redhat.com/sgrubb/files/fsfuzzer-0.6.tar.gz
def setup(self, tarball = 'fsfuzzer-0.6.tar.gz'):
- tarball = unmap_url(self.bindir, tarball, self.tmpdir)
- extract_tarball_to_dir(tarball, self.srcdir)
+ tarball = autotest_utils.unmap_url(self.bindir, tarball,
+ self.tmpdir)
+ autotest_utils.extract_tarball_to_dir(tarball, self.srcdir)
os.chdir(self.srcdir)
- system('make')
+ utils.system('make')
def execute(self, iterations = 1, fstype = 'iso9660'):
profilers = self.job.profilers
args = fstype + ' 1'
if not profilers.only():
for i in range(iterations):
- system(self.srcdir + '/run_test ' + args)
+ utils.system(self.srcdir + '/run_test ' + args)
# Do a profiling run if necessary
if profilers.present():
profilers.start(self)
- system(self.srcdir + '/run_test ' + args)
+ utils.system(self.srcdir + '/run_test ' + args)
profilers.stop(self)
profilers.report(self)