mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Update to new device DB.
This commit is contained in:
parent
760e09290f
commit
b9484019a3
8 changed files with 32 additions and 53 deletions
|
@ -613,19 +613,19 @@ program
|
|||
})
|
||||
|
||||
program
|
||||
.command('generate-fake-device')
|
||||
.command('generate-fake-device [model]')
|
||||
.description('generates a fake device for testing')
|
||||
.option('-n, --number <n>'
|
||||
, 'how many devices to create (defaults to 1)'
|
||||
, Number
|
||||
, 1)
|
||||
.action(function(options) {
|
||||
.action(function(model, options) {
|
||||
var log = logger.createLogger('cli:generate-fake-device')
|
||||
, fake = require('./util/fakedevice')
|
||||
, n = options.number
|
||||
|
||||
function next() {
|
||||
return fake.generate()
|
||||
return fake.generate(model)
|
||||
.then(function(serial) {
|
||||
log.info('Created fake device "%s"', serial)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue