Fix platform-specif test logic. (#46623)
This commit is contained in:
parent
55f0bdc033
commit
05862ff968
@ -212,16 +212,16 @@ class TestFile {
|
|||||||
test.add(line.substring(5));
|
test.add(line.substring(5));
|
||||||
} else if (line.startsWith('test.windows=')) {
|
} else if (line.startsWith('test.windows=')) {
|
||||||
if (Platform.isWindows)
|
if (Platform.isWindows)
|
||||||
test.add(line.substring(5));
|
test.add(line.substring(13));
|
||||||
} else if (line.startsWith('test.macos=')) {
|
} else if (line.startsWith('test.macos=')) {
|
||||||
if (Platform.isMacOS)
|
if (Platform.isMacOS)
|
||||||
test.add(line.substring(5));
|
test.add(line.substring(11));
|
||||||
} else if (line.startsWith('test.linux=')) {
|
} else if (line.startsWith('test.linux=')) {
|
||||||
if (Platform.isLinux)
|
if (Platform.isLinux)
|
||||||
test.add(line.substring(5));
|
test.add(line.substring(11));
|
||||||
} else if (line.startsWith('test.posix=')) {
|
} else if (line.startsWith('test.posix=')) {
|
||||||
if (Platform.isLinux || Platform.isMacOS)
|
if (Platform.isLinux || Platform.isMacOS)
|
||||||
test.add(line.substring(5));
|
test.add(line.substring(11));
|
||||||
} else {
|
} else {
|
||||||
throw FormatException('${errorPrefix}Unexpected directive:\n$line');
|
throw FormatException('${errorPrefix}Unexpected directive:\n$line');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user