Skip to content

Commit 95f80c9

Browse files
committed
Fix case no platform is specified
1 parent 3992919 commit 95f80c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

maestro-cli/src/main/java/maestro/cli/command/TestCommand.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,9 @@ class TestCommand : Callable<Int> {
239239
}
240240
}
241241
.ifEmpty {
242+
val platform = platform ?: parent?.platform
242243
connectedDevices
243-
.filter { it.platform == Platform.fromString(platform ?: parent?.platform) }
244+
.filter { platform == null || it.platform == Platform.fromString(platform) }
244245
.map { it.instanceId }.toSet()
245246
}
246247
.toList()

0 commit comments

Comments
 (0)