| OLD | NEW |
| 1 import os | 1 import os |
| 2 from autotest_lib.client.bin import test | 2 from autotest_lib.client.bin import test |
| 3 from autotest_lib.client.common_lib import utils | 3 from autotest_lib.client.common_lib import utils |
| 4 | 4 |
| 5 | 5 |
| 6 class synctest(test.test): | 6 class synctest(test.test): |
| 7 version = 1 | 7 version = 1 |
| 8 preserve_srcdir = True | 8 preserve_srcdir = True |
| 9 | 9 |
| 10 def initialize(self): | 10 def initialize(self): |
| 11 self.job.require_gcc() | 11 self.job.require_gcc() |
| 12 | 12 |
| 13 | 13 |
| 14 def setup(self): | 14 def setup(self): |
| 15 os.chdir(self.srcdir) | 15 os.chdir(self.srcdir) |
| 16 utils.system('make') | 16 utils.make() |
| 17 | 17 |
| 18 | 18 |
| 19 def run_once(self, len, loop, testdir=None): | 19 def run_once(self, len, loop, testdir=None): |
| 20 args = len + ' ' + loop | 20 args = len + ' ' + loop |
| 21 output = os.path.join(self.srcdir, 'synctest ') | 21 output = os.path.join(self.srcdir, 'synctest ') |
| 22 if testdir: | 22 if testdir: |
| 23 os.chdir(testdir) | 23 os.chdir(testdir) |
| 24 utils.system(output + args) | 24 utils.system(output + args) |
| OLD | NEW |