From 05862ff9689b2c68e262ae2a134cad76f22df530 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Mon, 9 Dec 2019 12:58:03 -0800 Subject: [PATCH] Fix platform-specif test logic. (#46623) --- dev/customer_testing/run_tests.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/customer_testing/run_tests.dart b/dev/customer_testing/run_tests.dart index f6d56cab4c..008789206c 100644 --- a/dev/customer_testing/run_tests.dart +++ b/dev/customer_testing/run_tests.dart @@ -212,16 +212,16 @@ class TestFile { test.add(line.substring(5)); } else if (line.startsWith('test.windows=')) { if (Platform.isWindows) - test.add(line.substring(5)); + test.add(line.substring(13)); } else if (line.startsWith('test.macos=')) { if (Platform.isMacOS) - test.add(line.substring(5)); + test.add(line.substring(11)); } else if (line.startsWith('test.linux=')) { if (Platform.isLinux) - test.add(line.substring(5)); + test.add(line.substring(11)); } else if (line.startsWith('test.posix=')) { if (Platform.isLinux || Platform.isMacOS) - test.add(line.substring(5)); + test.add(line.substring(11)); } else { throw FormatException('${errorPrefix}Unexpected directive:\n$line'); }