コード例 #1
0
 def get(self, location=None):
     if not location:
         location = os.path.join(self.serverdir, '../client')
         location = os.path.abspath(location)
     # If there's stuff run on our client directory already, it
     # can cause problems. Try giving it a quick clean first.
     cwd = os.getcwd()
     os.chdir(location)
     try:
         utils.system('tools/make_clean', ignore_status=True)
     finally:
         os.chdir(cwd)
     super(BaseAutotest, self).get(location)
     self.got = True
コード例 #2
0
 def get(self, location=None):
     if not location:
         location = os.path.join(self.serverdir, '../client')
         location = os.path.abspath(location)
     # If there's stuff run on our client directory already, it
     # can cause problems. Try giving it a quick clean first.
     cwd = os.getcwd()
     os.chdir(location)
     try:
         utils.system('tools/make_clean', ignore_status=True)
     finally:
         os.chdir(cwd)
     super(BaseAutotest, self).get(location)
     self.got = True