def SetupWithBaseDirPrefix(self, basedir_prefix, tmpdir=None): self.basedir = tempfile.mkdtemp(prefix=basedir_prefix, dir=tmpdir) # We have to make sure that we build our updaters with a version that is at # least as large as the version in the sdk_tools bundle. If not, update # tests may fail because the "current" version (according to the sdk_cache) # is greater than the version we are attempting to update to. self.current_revision = self._GetSdkToolsBundleRevision() self._BuildUpdater(self.basedir, self.current_revision) self._LoadCacheManifest() self.server = test_server.LocalHTTPServer(self.basedir)
def setUp(self): self.basedir = tempfile.mkdtemp() build_updater.BuildUpdater(self.basedir) self._LoadCacheManifest() self.current_revision = int(build_utils.ChromeRevision()) self.server = test_server.LocalHTTPServer(self.basedir)