Index: tools/testing/dart/test_suite.dart |
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart |
index 7b36c5f7563714c8fe7c13dea7dcf2e1a4d47d01..ed354d2578df578f2987074726a26c16339381b9 100644 |
--- a/tools/testing/dart/test_suite.dart |
+++ b/tools/testing/dart/test_suite.dart |
@@ -2340,7 +2340,20 @@ class TestUtils { |
// is an X in front of the arch. We don't allow both a cross compiled |
// and a normal version to be present (except if you specifically pass |
// in the build_directory). |
- var mode = (configuration['mode'] == 'debug') ? 'Debug' : 'Release'; |
+ var mode; |
+ switch (configuration['mode']) { |
+ case 'debug': |
+ mode = 'Debug'; |
+ break; |
+ case 'release': |
+ mode = 'Release'; |
+ break; |
+ case 'product': |
+ mode = 'Product'; |
+ break; |
+ default: |
+ throw 'Unrecognized mode configuration: ${configuration['mode']}'; |
+ } |
var arch = configuration['arch'].toUpperCase(); |
var normal = '$mode$arch'; |
var cross = '${mode}X$arch'; |