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 |