Home | History | Annotate | Download | only in play_services

Lines Matching defs:Paths

33     self.paths = None  # Initialized in SetUpWorkdir
56 '--bucket', self.paths.bucket,
57 '--config', self.paths.config_file,
58 '--sdk-root', self.paths.sdk_root
63 self.assertTrue(os.path.isfile(self.paths.config_license_sha1))
64 license_sha1 = _GetFileContent(self.paths.config_license_sha1)
65 bucket_license = os.path.join(self.paths.bucket, str(version),
71 self.assertTrue(os.path.isfile(self.paths.config_zip_sha1))
72 bucket_zip = os.path.join(self.paths.bucket, str(version),
73 _GetFileContent(self.paths.config_zip_sha1))
91 '--bucket', self.paths.bucket,
92 '--config', self.paths.config_file,
93 '--sdk-root', self.paths.sdk_root,
98 self.assertFalse(os.listdir(self.paths.bucket))
99 self.assertFalse(os.path.isfile(self.paths.config_license_sha1))
100 self.assertFalse(os.path.isfile(self.paths.config_zip_sha1))
109 '--bucket', self.paths.bucket,
110 '--config', self.paths.config_file,
111 '--sdk-root', self.paths.sdk_root,
117 self.assertTrue(os.path.isfile(os.path.join(self.paths.gms_lib,
119 self.assertTrue(os.path.isfile(self.paths.gms_root_sha1))
120 self.assertTrue(os.path.isfile(self.paths.gms_root_license))
121 self.assertEquals(_GetFileContent(self.paths.gms_root_license),
131 '--bucket', self.paths.bucket,
132 '--config', self.paths.config_file,
133 '--sdk-root', self.paths.sdk_root,
139 self.assertTrue(os.path.isfile(os.path.join(self.paths.gms_lib,
141 self.assertTrue(os.path.isfile(self.paths.gms_root_sha1))
142 self.assertTrue(os.path.isfile(self.paths.gms_root_license))
143 self.assertEquals(_GetFileContent(self.paths.gms_root_license),
154 '--bucket', self.paths.bucket,
155 '--config', self.paths.config_file,
156 '--sdk-root', self.paths.sdk_root,
162 self.assertFalse(os.path.isfile(os.path.join(self.paths.gms_lib,
164 self.assertFalse(os.path.isfile(self.paths.gms_root_license))
175 '--bucket', self.paths.bucket,
176 '--config', self.paths.config_file,
177 '--sdk-root', self.paths.sdk_root,
183 self.assertTrue(os.path.isfile(os.path.join(self.paths.gms_lib,
185 self.assertTrue(os.path.isfile(self.paths.gms_root_sha1))
186 self.assertTrue(os.path.isfile(self.paths.gms_root_license))
187 self.assertEquals(_GetFileContent(self.paths.gms_root_license),
199 '--bucket', self.paths.bucket,
200 '--config', self.paths.config_file,
201 '--sdk-root', self.paths.sdk_root,
207 self.assertTrue(os.path.isfile(os.path.join(self.paths.gms_lib,
209 self.assertTrue(os.path.isfile(self.paths.gms_root_sha1))
210 self.assertTrue(os.path.isfile(self.paths.gms_root_license))
211 self.assertEquals(_GetFileContent(self.paths.gms_root_license),
223 '--bucket', self.paths.bucket,
224 '--config', self.paths.config_file,
225 '--sdk-root', self.paths.sdk_root,
231 self.assertFalse(os.path.isfile(os.path.join(self.paths.gms_lib,
233 self.assertEquals(_GetFileContent(self.paths.gms_root_license),
246 '--bucket', self.paths.bucket,
247 '--config', self.paths.config_file,
289 self.paths = Paths(self.workdir)
292 _MakeDirs(self.paths.sdk_root)
293 _MakeDirs(self.paths.config_dir)
294 _MakeDirs(self.paths.bucket)
297 update.SHA1_DIRECTORY = self.paths.config_dir
302 _MakeDirs(os.path.dirname(self.paths.config_file))
303 with open(self.paths.config_file, 'w') as stream:
309 _MakeDirs(self.paths.gms_root)
310 with open(self.paths.gms_root_license, 'w') as stream:
314 _MakeDirs(self.paths.gms_root)
315 with open(self.paths.gms_root_sha1, 'w') as stream:
319 _MakeDirs(self.paths.gms_lib)
320 with open(os.path.join(self.paths.gms_lib, 'dummy_file'), 'w') as stream:
324 _MakeDirs(os.path.dirname(self.paths.source_prop))
325 with open(self.paths.source_prop, 'w') as stream:
331 _MakeDirs(self.paths.config_dir)
332 bucket_dir = os.path.join(self.paths.bucket, str(config_version))
338 with open(self.paths.config_license_sha1, 'w') as stream:
345 with open(self.paths.config_zip_sha1, 'w') as stream:
358 _MakeDirs(os.path.dirname(self.paths.xml_version))
359 with open(self.paths.xml_version, 'w') as stream:
367 class Paths(object):
368 '''Declaration of the paths commonly manipulated in the tests.'''