diff options
Diffstat (limited to 'client/tests/posixtest/posixtest.py')
-rwxr-xr-x | client/tests/posixtest/posixtest.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/client/tests/posixtest/posixtest.py b/client/tests/posixtest/posixtest.py index 09f9ee20..9eb15aa9 100755 --- a/client/tests/posixtest/posixtest.py +++ b/client/tests/posixtest/posixtest.py @@ -1,7 +1,9 @@ # POSIX test suite wrapper class. More information about the suite can be found # at http://posixtest.sourceforge.net/ -import test, os -from autotest_utils import * +import os +from autotest_lib.client.bin import test, autotest_utils +from autotest_lib.client.common_lib import utils + __author__ = '''mohd.omar@in.ibm.com (Mohammed Omar)''' @@ -9,16 +11,19 @@ class posixtest(test.test): version = 1 # http://ufpr.dl.sourceforge.net/sourceforge/posixtest/posixtestsuite-1.5.2.tar.gz def setup(self, tarball = 'posixtestsuite-1.5.2.tar.gz'): - self.posix_tarball = unmap_url(self.bindir, tarball, self.tmpdir) - extract_tarball_to_dir(self.posix_tarball, self.srcdir) + self.posix_tarball = autotest_utils.unmap_url(self.bindir, + tarball, + self.tmpdir) + autotest_utils.extract_tarball_to_dir(self.posix_tarball, + self.srcdir) os.chdir(self.srcdir) # Applying a small patch that introduces some linux specific # linking options - system('patch -p1 < ../posix-linux.patch') - system('make') + utils.system('patch -p1 < ../posix-linux.patch') + utils.system('make') def execute(self): os.chdir(self.srcdir) - system('./run_tests THR') + utils.system('./run_tests THR') |