Chromium Code Reviews| Index: appengine/findit/waterfall/test/buildbot_test.py |
| diff --git a/appengine/findit/waterfall/test/buildbot_test.py b/appengine/findit/waterfall/test/buildbot_test.py |
| index 99b8c559c0a42ee3c9fd821394e5d4faf5aee5d1..f3ab690b27c4e4c0b55cf5047a5a3ca455d72bb1 100644 |
| --- a/appengine/findit/waterfall/test/buildbot_test.py |
| +++ b/appengine/findit/waterfall/test/buildbot_test.py |
| @@ -3,6 +3,9 @@ |
| # found in the LICENSE file. |
| from datetime import datetime |
| + |
| +import cloudstorage as gcs |
|
stgao
2015/05/22 22:49:43
This is a third-party lib, so it has to be in a se
chanli
2015/05/22 23:26:33
Done. One question: I don't see this in the https:
|
| +import gzip |
| import os |
| import unittest |
| @@ -120,6 +123,19 @@ class BuildBotTest(unittest.TestCase): |
| buildbot.CreateStdioLogUrl( |
| master_name, builder_name, build_number, step_name)) |
| + def testCreateGtestResultPath(self): |
| + master_name = 'a' |
| + builder_name = 'Win7 Tests (1)' |
| + build_number = 123 |
| + step_name = '[trigger] abc_tests' |
| + expected_stdio_log_url = ('/chrome-gtest-results/buildbot/a/Win7 Tests ' |
| + '(1)/123/[trigger] abc_tests.json.gz') |
| + |
| + self.assertEqual( |
| + expected_stdio_log_url, |
| + buildbot.CreateGtestResultPath( |
| + master_name, builder_name, build_number, step_name)) |
| + |
| def testGetBuildDataFromArchiveSuccess(self): |
| master_name = 'a' |
| builder_name = 'b c' |