Index: chrome/common/extensions/docs/server2/integration_test.py |
diff --git a/chrome/common/extensions/docs/server2/integration_test.py b/chrome/common/extensions/docs/server2/integration_test.py |
index 3724a9cb5725633d0922cb8eceee8f62d4eab43d..c6484293ba82fea5248bfb5c308c3735ce22a1c4 100755 |
--- a/chrome/common/extensions/docs/server2/integration_test.py |
+++ b/chrome/common/extensions/docs/server2/integration_test.py |
@@ -187,7 +187,11 @@ class IntegrationTest(unittest.TestCase): |
'Rendered content length was %s vs template content length %s ' |
'when rendering %s' % (len(response.content), len(content), path)) |
- check_result(Handler(Request.ForTest(path)).Get()) |
+ # TODO(kalman): Hack to avoid failing redirects like extensions/index |
+ # to extensions. Better fix would be to parse or whitelist the |
+ # redirects.json files as part of this test. |
+ if not path.endswith('/index'): |
+ check_result(Handler(Request.ForTest(path)).Get()) |
if path.startswith(('apps/', 'extensions/')): |
# Make sure that adding the .html will temporarily redirect to |