[skip ci] shutdown script
This commit is contained in:
1 parent
6fd99afd8a
commit
6b62532b48
2 files changed
+24
-1
No files matched your search
@@ -0,0 +1,22 @@
|
||||
// Shutdown a Roku device
|
||||
const rokuTestAutomation = require('roku-test-automation');
|
||||
const ecp = rokuTestAutomation.ecp;
|
||||
const utils = rokuTestAutomation.utils;
|
||||
const Key = rokuTestAutomation.ECP.Key;
|
||||
|
||||
const getEnvVars = require('./get-env-vars');
|
||||
|
||||
const config = getEnvVars(['ROKU_DEV_TARGET']);
|
||||
|
||||
(async () => {
|
||||
utils.setupEnvironmentFromConfig({
|
||||
RokuDevice: {
|
||||
devices: [{
|
||||
host: config.ROKU_DEV_TARGET,
|
||||
password: ''
|
||||
}]
|
||||
}
|
||||
});
|
||||
|
||||
await ecp.sendKeypress(Key.PowerOff);
|
||||
})();
|
||||
Reference in new issue
Block a user