From f81cfb178bf4868cf60915f0321337fb84f8277c Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Thu, 21 Dec 2017 11:06:53 +0100 Subject: [PATCH] Turn off display after testing --- runtests.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtests.js b/runtests.js index 37daf091c..bb7b49f5c 100644 --- a/runtests.js +++ b/runtests.js @@ -77,5 +77,9 @@ run('npm', ['install'], () => { }).nThen((waitFor) => { run('npm', ['run', 'fresh'], ()=>{}); run('node', ['./TestSelenium.js'], waitFor()); + }).nThen((waitFor) => { + if (process.platform === 'darwin') { + run('bash', ['-c', 'pmset displaysleepnow'], waitFor()); + } }).nThen(killAll); });