From af55ddc91349d408775bef8d29db7dabae7aef72 Mon Sep 17 00:00:00 2001 From: Joni Jantti Date: Tue, 6 Feb 2018 14:58:42 +0200 Subject: Provisioning: MacOS-10.12 - Disable sleep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Display sleep and system sleep need to be disabled to prevent the machine from going to sleep during RTA testing. Task-number: QTQAINFRA-1588 Change-Id: I3dc1642d3714762bfb56963392d2bb5137c13256 Reviewed-by: Tony Sarajärvi --- coin/provisioning/qtci-macos-10.12-x86_64/05-systemsetup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'coin/provisioning/qtci-macos-10.12-x86_64') diff --git a/coin/provisioning/qtci-macos-10.12-x86_64/05-systemsetup.sh b/coin/provisioning/qtci-macos-10.12-x86_64/05-systemsetup.sh index 20430d6a..6420efe7 100755 --- a/coin/provisioning/qtci-macos-10.12-x86_64/05-systemsetup.sh +++ b/coin/provisioning/qtci-macos-10.12-x86_64/05-systemsetup.sh @@ -49,6 +49,7 @@ ExceptionSetDelay=102 ExceptionVNC=103 ExceptionNTS=104 ExceptionDisableScreensaverPassword=105 +ExceptionDisableSleep=106 try ( @@ -56,6 +57,9 @@ try # For current session defaults -currentHost write com.apple.screensaver idleTime 0 || throw $ExceptionDisableScreensaver + echo "Disable sleep" + sudo pmset sleep 0 displaysleep 0 || throw $ExceptionDisableSleep + # For session after a reboot mkdir -p "$HOME/Library/LaunchAgents" || throw $ExceptionDisableScreensaver ( @@ -126,5 +130,10 @@ catch || { echo "Failed to disable requiring of password after screensaver is enabled." exit 1; ;; + $ExceptionDisableSleep) + echo "Failed to disable sleep." + exit 1; + ;; + esac } -- cgit v1.2.3 From 769a34ed26589702623fe41aeac72527c3e7c210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simo=20F=C3=A4lt?= Date: Wed, 7 Feb 2018 13:52:55 +0200 Subject: Provision: Use specific Python2 version in macOS Make sure we use some specific Python2 version on macOS instead of the one pre-installed along with system. Change-Id: Ifee07a8cf003e282ec3cb67535818f9fe39c8679 Reviewed-by: Heikki Halmet --- coin/provisioning/qtci-macos-10.12-x86_64/25-python2.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 coin/provisioning/qtci-macos-10.12-x86_64/25-python2.sh (limited to 'coin/provisioning/qtci-macos-10.12-x86_64') diff --git a/coin/provisioning/qtci-macos-10.12-x86_64/25-python2.sh b/coin/provisioning/qtci-macos-10.12-x86_64/25-python2.sh new file mode 100755 index 00000000..ef65edad --- /dev/null +++ b/coin/provisioning/qtci-macos-10.12-x86_64/25-python2.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -ex + +source "${BASH_SOURCE%/*}/../common/macos/python2.sh" -- cgit v1.2.3