forked from DeviceFarmer/stf
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from VKCOM/a.chistov/get-market-name/QA-15737
QA-15737 Get the market name from the device
- Loading branch information
Showing
9 changed files
with
248 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
import syrup from '@devicefarmer/stf-syrup' | ||
import devutil from '../../../../util/devutil.js' | ||
import logger from '../../../../util/logger.js' | ||
import properties from '../../support/properties.js' | ||
import display from './display.js' | ||
import phone from './phone.js' | ||
export default syrup.serial() | ||
.dependency(properties) | ||
.dependency(display) | ||
.dependency(phone) | ||
.define(function(options, properties, display, phone) { | ||
.dependency(devutil) | ||
.define(function(options, display, phone, devutil) { | ||
var log = logger.createLogger('device:plugins:identity') | ||
function solve() { | ||
|
||
async function solve() { | ||
log.info('Solving identity') | ||
let identity = devutil.makeIdentity(options.serial, properties) | ||
let identity = await devutil.makeIdentity() | ||
identity.display = display.properties | ||
identity.phone = phone | ||
if (options.deviceName) { | ||
identity.module = options.deviceName | ||
} | ||
return identity | ||
} | ||
|
||
return solve() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.