mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 07:53:22 +02:00
Signed-off-by: Joowon Moon <jsjs401@daum.net>
This commit is contained in:
@@ -166,7 +166,14 @@ devutil.makeIdentity = function(serial, properties) {
|
||||
else if (marketName) {
|
||||
var devices = androidDeviceList.getDevicesByDeviceId(marketName)
|
||||
if (devices.length > 0) {
|
||||
marketName = devices[0].name
|
||||
const deviceFilter = devices.filter(device => device.model === model)
|
||||
|
||||
if (deviceFilter.length > 0) {
|
||||
marketName = deviceFilter[0].name
|
||||
}
|
||||
else {
|
||||
marketName = devices[0].name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user