Skip to content

Commit e62748f

Browse files
aamCommit Queue
authored andcommitted
[gardening] Make info_macos_test resilient to snapshots running.
Align info_macos_test with info_linux_test in this regard: fix is similar to how #50583 was addressed. BUG=#52658 BUG=#52402 TEST=ci Change-Id: If7ab54990069c86eb5c0348e20086254818da839 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312705 Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
1 parent 8515c4a commit e62748f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/dartdev/test/commands/info_macos_test.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ void main() {
2121
expect(process.memoryMb, greaterThan(0));
2222
expect(process.cpuPercent, greaterThanOrEqualTo(0.0));
2323
expect(process.elapsedTime, isNotEmpty);
24-
expect(process.commandLine, startsWith('dart'));
24+
if (!(process.commandLine.startsWith('dart') ||
25+
process.commandLine.contains('snapshot'))) {
26+
print("Expected ${process.commandLine} to start with 'dart' or"
27+
" contain 'snapshot'.");
28+
expect(true, false);
29+
}
2530
}
2631
});
2732

0 commit comments

Comments
 (0)