aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/qtci-macos-14-arm/01-set_tcc_permissions.sh
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-03-08 13:29:55 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-03-11 09:17:21 +0000
commitb4de4de7425abd85584beed9e5f1c38dd809544c (patch)
tree483812633138c325afe1b9d8444db3edf52a4869 /coin/provisioning/qtci-macos-14-arm/01-set_tcc_permissions.sh
parent6d8dd19daeb7fb9f1edf43f9b97793dd971c3ce2 (diff)
coin: Give bootstrap-agent permission to use microphone on macOS
The bootstrap-agent is the 'responsible process' in TCC terms when it comes to whether a test should be allowed to access the microphone. https://www.qt.io/blog/the-curious-case-of-the-responsible-process By giving this process the permission explicitly, by modifying the TCC database, we ensure that all tests run as child processes also get this permission. Change-Id: Ia03084ac89f0717ac6457b0035769f4a9863495b Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
Diffstat (limited to 'coin/provisioning/qtci-macos-14-arm/01-set_tcc_permissions.sh')
-rwxr-xr-xcoin/provisioning/qtci-macos-14-arm/01-set_tcc_permissions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/coin/provisioning/qtci-macos-14-arm/01-set_tcc_permissions.sh b/coin/provisioning/qtci-macos-14-arm/01-set_tcc_permissions.sh
new file mode 100755
index 00000000..da38f582
--- /dev/null
+++ b/coin/provisioning/qtci-macos-14-arm/01-set_tcc_permissions.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+# Copyright (C) 2024 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+set -ex
+source "${BASH_SOURCE%/*}/../common/macos/set_tcc_permissions.sh"