Index: pkg/analysis_server/test/integration/integration_tests.dart |
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart |
index 5471bda56f754d569efd29104b3c1d769ea2d89a..faec89f54533e1c500ea54402bdb33ddae75d38d 100644 |
--- a/pkg/analysis_server/test/integration/integration_tests.dart |
+++ b/pkg/analysis_server/test/integration/integration_tests.dart |
@@ -462,7 +462,7 @@ class Server { |
* upward to the 'test' dir, and then going up one more directory. |
*/ |
String findRoot(String pathname) { |
- while (basename(pathname) != 'test') { |
+ while (!['benchmark', 'test'].contains(basename(pathname))) { |
String parent = dirname(pathname); |
if (parent.length >= pathname.length) { |
throw new Exception("Can't find root directory"); |