Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py

Issue 3156038: graphics_WebGLConformance: use tarballs for WebGLConformance test (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/site_tests/graphics_WebGLConformance/scripts/make-tarball » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py
diff --git a/client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py b/client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py
index d07fb219917993ce1fb787deb5fc837b2f0b0ad9..b06cc70df7f31c7ede6ca0d05c639ebcc96d2a68 100644
--- a/client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py
+++ b/client/site_tests/graphics_WebGLConformance/graphics_WebGLConformance.py
@@ -18,8 +18,18 @@ class graphics_WebGLConformance(site_ui_test.UITest):
site_ui_test.UITest.initialize(self, creds)
- def setup(self):
+ def setup(self, tarball='webgl-tests-0.0.1.tar.bz2'):
shutil.rmtree(self.srcdir, ignore_errors=True)
+
+ dst_path = os.path.join(self.bindir, 'WebGL')
+ tarball_path = os.path.join(self.bindir, tarball)
+ if not os.path.exists(dst_path):
+ if not os.path.exists(tarball_path):
+ utils.get_file(
+ 'http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/' + tarball,
+ tarball_path)
+ utils.extract_tarball_to_dir(tarball_path, dst_path)
+
shutil.copytree(os.path.join(self.bindir, 'WebGL'), self.srcdir)
os.chdir(self.srcdir)
utils.system('patch -p1 < ../r11002.patch')
« no previous file with comments | « no previous file | client/site_tests/graphics_WebGLConformance/scripts/make-tarball » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698