mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
22 lines
417 B
JavaScript
22 lines
417 B
JavaScript
var assert = require('assert')
|
|
|
|
assert.ok(process.env.ANDROID_SERIAL,
|
|
'Missing environment variable ANDROID_SERIAL')
|
|
|
|
var log = require('./util/logger')
|
|
.setGlobalIdentifier(process.env.ANDROID_SERIAL)
|
|
.createLogger('device')
|
|
|
|
function gracefullyExit() {
|
|
process.exit(0)
|
|
}
|
|
|
|
process.on('SIGINT', function() {
|
|
gracefullyExit()
|
|
})
|
|
|
|
process.on('SIGTERM', function() {
|
|
gracefullyExit()
|
|
})
|
|
|
|
log.info('Started')
|