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

Unified Diff: tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/downloads_test.py

Issue 1376593003: Roll gsutil version to 4.15. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/downloads_test.py
diff --git a/tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/downloads_test.py b/tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/downloads_test.py
index 2276d98e59854b1256f81fcc79d98f2ed3e4d794..72a4821365fe0d22cbb12c68a9d6fe66ad473d75 100644
--- a/tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/downloads_test.py
+++ b/tools/telemetry/third_party/gsutilz/third_party/apitools/samples/storage_sample/downloads_test.py
@@ -37,7 +37,9 @@ class DownloadsTest(unittest.TestCase):
self.__buffer, auto_transfer=auto_transfer)
def __GetTestdataFileContents(self, filename):
- file_contents = open('testdata/%s' % filename).read()
+ file_path = os.path.join(
+ os.path.dirname(__file__), self._TESTDATA_PREFIX, filename)
+ file_contents = open(file_path).read()
self.assertIsNotNone(
file_contents, msg=('Could not read file %s' % filename))
return file_contents

Powered by Google App Engine
This is Rietveld 408576698