| Index: slave/skia_slave_scripts/chrome_drt_canary_upload_results.py
|
| diff --git a/slave/skia_slave_scripts/chrome_drt_canary_upload_results.py b/slave/skia_slave_scripts/chrome_drt_canary_upload_results.py
|
| deleted file mode 100644
|
| index 2a39476c8fbdb5cdf675193d9f31803491739546..0000000000000000000000000000000000000000
|
| --- a/slave/skia_slave_scripts/chrome_drt_canary_upload_results.py
|
| +++ /dev/null
|
| @@ -1,46 +0,0 @@
|
| -#!/usr/bin/env python
|
| -# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| -# Use of this source code is governed by a BSD-style license that can be
|
| -# found in the LICENSE file.
|
| -
|
| -""" Run this before running any tests. """
|
| -
|
| -from build_step import BuildStep
|
| -from py.utils import shell_utils
|
| -from utils import gs_utils
|
| -from utils import upload_to_bucket
|
| -import os
|
| -import posixpath
|
| -import skia_vars
|
| -import sys
|
| -
|
| -
|
| -GS_DRT_SUBDIR = 'chrome_drt_results'
|
| -
|
| -
|
| -class ChromeDRTCanaryUploadResults(BuildStep):
|
| - def _Run(self):
|
| - # Tar up the results.
|
| - result_tarball = '%s_%s.tgz' % (self._builder_name,
|
| - self._got_revision)
|
| - shell_utils.run(['tar', '-cvzf', os.path.join(os.pardir, result_tarball),
|
| - self._flavor_utils.result_dir])
|
| -
|
| - # Upload to Google Storage
|
| - bucket_url = gs_utils.GSUtils.with_gs_prefix(
|
| - skia_vars.GetGlobalVariable('googlestorage_bucket'))
|
| - upload_to_bucket.upload_to_bucket(
|
| - os.path.join(os.pardir, result_tarball),
|
| - bucket_url,
|
| - subdir=GS_DRT_SUBDIR)
|
| -
|
| - print 'To download the tarball, run this command:'
|
| - gs_url = posixpath.join(
|
| - bucket_url,
|
| - GS_DRT_SUBDIR,
|
| - result_tarball)
|
| - print 'gsutil cp %s <local_dir>' % gs_url
|
| -
|
| -
|
| -if '__main__' == __name__:
|
| - sys.exit(BuildStep.RunBuildStep(ChromeDRTCanaryUploadResults))
|
|
|