Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix(cua-driver): uninstall keeps macOS permissions unless asked; release gate pins the app signing requirement (#5460)
Francesco Bonacci14f2a811903e
diff --git a/.github/scripts/tests/test_verify_cua_driver_release_signatures.py b/.github/scripts/tests/test_verify_cua_driver_release_signatures.pyindex 75b3fd3bfd..d0c87d3127 100644--- a/.github/scripts/tests/test_verify_cua_driver_release_signatures.py+++ b/.github/scripts/tests/test_verify_cua_driver_release_signatures.py@@ -86,6 +86,7 @@ class FakeMacTools:adhoc_names: tuple[str, ...] = (),unsigned_names: tuple[str, ...] = (),team: str = TEAM,+ requirement: str | None = None,) -> None:self.signed = signedself.unsigned_names = unsigned_names@@ -93,6 +94,7 @@ class FakeMacTools:self.stapled = stapledself.adhoc_names = adhoc_namesself.team = team+ self.requirement = requirementself.calls: list[list[str]] = []def __call__(self, argv) -> CommandResult:@@ -108,6 +110,11 @@ class FakeMacTools:if not self.signed or target.name in self.unsigned_names:return CommandResult(1, f"{target}: code object is not signed at all")return CommandResult(0, f"{target}: valid on disk")+ if tool == "codesign" and "-r-" in argv:+ if adhoc:+ return CommandResult(0, f"Executable={target}\ndesignated => cdhash H\"{'ab' * 20}\"\n")+ requirement = self.requirement or gate.expected_designated_requirement(self.team)+ return CommandResult(0, f"Executable={target}\ndesignated => {requirement}\n")if tool == "codesign":details = ADHOC_DETAILS if adhoc else SIGNED_DETAILS.replace(TEAM, self.team)return CommandResult(0, details)@@ -196,6 +203,62 @@ def test_each_macos_signature_requirement_is_enforced(assert any(message in failure for failure in report.failures), report.failures+# What `codesign -d -r- CuaDriver.app` printed for the shipped 0.36.0 app. macOS+# keeps the user's Accessibility and Screen Recording approval against this+# exact requirement, so changing it makes every user approve again.+SHIPPED_0_36_0_REQUIREMENT = (+ 'identifier "com.trycua.driver" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6]'+ " /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */"+ " and certificate leaf[subject.OU] = YCK386LBJ7"+)+++def test_expected_designated_requirement_is_the_one_shipped_apps_carry() -> None:+ assert gate.expected_designated_requirement() == SHIPPED_0_36_0_REQUIREMENT+ assert "cdhash" not in SHIPPED_0_36_0_REQUIREMENT+ assert "CFBundleShortVersionString" not in SHIPPED_0_36_0_REQUIREMENT+++def test_release_app_designated_requirement_is_checked_once_per_archive(tmp_path: Path) -> None:+ tools = FakeMacTools()+ report = verify_macos(make_darwin_artifacts(tmp_path / "a"), VERSION, run=tools)++ assert report.failures == []+ requirement_calls = [call for call in tools.calls if "-r-" in call]+ assert len(requirement_calls) == 3+ assert all(Path(call[-1]).name == "CuaDriver.app" for call in requirement_calls)+++ "requirement",+ [+ 'cdhash H"' + "ab" * 20 + '"',+ SHIPPED_0_36_0_REQUIREMENT + ' and info[CFBundleShortVersionString] = "0.36.0"',+ SHIPPED_0_36_0_REQUIREMENT.replace("com.trycua.driver", "com.trycua.driver.local"),+ SHIPPED_0_36_0_REQUIREMENT.replace("YCK386LBJ7", "ZZZZZZZZZZ"),+ "anchor apple generic",+ ],+)+def test_a_requirement_that_pins_a_build_fails_the_release(tmp_path: Path, requirement: str) -> None:+ report = verify_macos(+ make_darwin_artifacts(tmp_path / "a"), VERSION, run=FakeMacTools(requirement=requirement)+ )++ assert any(+ "CuaDriver.app: designated requirement is not the stable one" in failure+ and "Accessibility and Screen Recording again" in failure+ for failure in report.failures+ ), report.failures+++def test_a_quoted_team_id_in_the_requirement_is_still_the_same_requirement(tmp_path: Path) -> None:+ quoted = SHIPPED_0_36_0_REQUIREMENT.replace("= YCK386LBJ7", '= "YCK386LBJ7"')+ report = verify_macos(+ make_darwin_artifacts(tmp_path / "a"), VERSION, run=FakeMacTools(requirement=quoted)+ )+ assert report.failures == []++@pytest.mark.parametrize("omit", ["CuaDriver.app", "cua-driver", "libcua_driver_sdk.dylib", "cua_driver_node_runtime.node"])diff --git a/.github/scripts/verify_cua_driver_release_signatures.py b/.github/scripts/verify_cua_driver_release_signatures.pyindex f3256169fc..1549cc450e 100644--- a/.github/scripts/verify_cua_driver_release_signatures.py+++ b/.github/scripts/verify_cua_driver_release_signatures.py@@ -11,7 +11,11 @@ macOS (``macos``, run on a macOS runner)``codesign --verify --deep --strict``, carry a hardened-runtime Developer IDsignature from the pinned team, be accepted by ``spctl -a -t exec`` withsource ``Notarized Developer ID``, and have a stapled notarization ticket- (``xcrun stapler validate``). The standalone ``cua-driver``,+ (``xcrun stapler validate``). Its designated requirement must equal+ ``expected_designated_requirement``: macOS keeps the user's Accessibility and+ Screen Recording approval against that requirement, so one that pins a+ cdhash, a version or another identifier asks every user to approve again+ after the update. The standalone ``cua-driver``,``cua-cursor-theme``, ``libcua_driver_sdk.dylib``, and``cua_driver_node_runtime.node`` copies must carry the same team'shardened-runtime signature. Any ``.pkg`` or ``.dmg`` asset must be@@ -46,6 +50,7 @@ from typing import Callable, SequenceRELEASE_TEAM_ID = "YCK386LBJ7"+RELEASE_BUNDLE_ID = "com.trycua.driver"RELEASE_SIGNER = "Cua AI, Inc."DARWIN_LABELS = ("darwin-arm64", "darwin-x86_64", "darwin-universal")WINDOWS_ARCHES = ("x86_64", "arm64")@@ -137,6 +142,44 @@ def check_developer_id_signature(return True+def expected_designated_requirement(team_id: str = RELEASE_TEAM_ID) -> str:+ """The requirement codesign derives for a Developer ID app, as macOS prints it.++ It names the bundle identifier and the signing team and nothing else, so+ every release signed by that team satisfies the requirement an earlier+ release stored in the user's privacy database. The two OID fields are Apple's+ "Developer ID Certification Authority" and "Developer ID Application" marks.+ """+ return (+ f'identifier "{RELEASE_BUNDLE_ID}" and anchor apple generic'+ " and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */"+ " and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */"+ f" and certificate leaf[subject.OU] = {team_id}"+ )+++def check_designated_requirement(+ path: Path, label: str, team_id: str, run: Runner, report: Report+) -> bool:+ """The app's designated requirement is the stable, version-free one."""+ result = run(["codesign", "-d", "-r-", str(path)])+ match = re.search(r"^designated => (.+)$", result.output, re.MULTILINE)+ if result.returncode != 0 or not match:+ report.fail(f"{label}: could not read the designated requirement\n{_indent(result.output)}")+ return False+ expected = expected_designated_requirement(team_id)+ actual = " ".join(match.group(1).replace(f'"{team_id}"', team_id).split())+ if actual != expected:+ report.fail(+ f"{label}: designated requirement is not the stable one, so macOS would ask"+ " for Accessibility and Screen Recording again after the update\n"+ f" expected: {expected}\n actual: {actual}"+ )+ return False+ report.ok(f"{label}: designated requirement is stable ({RELEASE_BUNDLE_ID}, team {team_id})")+ return True++def check_notarized(path: Path, label: str, team_id: str, run: Runner, report: Report, *, assessment: str) -> None:@@ -217,6 +260,7 @@ def verify_macos(if check_developer_id_signature(app, label, team_id, run, report, deep=True):+ check_designated_requirement(app, label, team_id, run, report)check_notarized(app, label, team_id, run, report, assessment="exec")for executable in APP_EXECUTABLES:inner = app / executablediff --git a/docs/content/docs/spaces/guides/uninstall.mdx b/docs/content/docs/spaces/guides/uninstall.mdxindex bbc64d1cf5..cb7059f73f 100644--- a/docs/content/docs/spaces/guides/uninstall.mdx+++ b/docs/content/docs/spaces/guides/uninstall.mdx@@ -90,6 +90,10 @@ and says so. Add `--all` to remove them too, or run their own uninstallers:/bin/bash -c "$(curl -fsSL https://cua.ai/lume/uninstall.sh)"```+The Cua Driver uninstaller keeps its macOS permissions (Accessibility and Screen+Recording), so installing it again needs no new approval. To revoke them as+well, add `--reset-permissions` to its command.+## If a step needs your attentionThe command says what to run for anything it could not remove, and exits with adiff --git a/libs/cua-driver/scripts/README.md b/libs/cua-driver/scripts/README.mdindex e1e3e5f8a6..984186dbad 100644--- a/libs/cua-driver/scripts/README.md+++ b/libs/cua-driver/scripts/README.md@@ -92,8 +92,9 @@ libs/cua-driver/scripts/uninstall-local.ps1```The local uninstaller leaves `cua-driver`, `CuaDriver.app`, release services,-release state, and release TCC grants untouched. On macOS it revokes only-`com.trycua.driver.local`; pass `--keep-tcc` to retain that local grant.+release state, and release TCC grants untouched. It also keeps the+`com.trycua.driver.local` macOS permissions; pass `--reset-permissions` to+revoke that local grant.The release Unix uninstaller shuts down the release service before removinganything. It first requires the systemd/launchd supervisor to stop, then usesdiff --git a/libs/cua-driver/scripts/tests/test_uninstall_autostart.py b/libs/cua-driver/scripts/tests/test_uninstall_autostart.pyindex cf26dda37a..3233743938 100644--- a/libs/cua-driver/scripts/tests/test_uninstall_autostart.py+++ b/libs/cua-driver/scripts/tests/test_uninstall_autostart.py@@ -64,9 +64,9 @@ donereturn home, calls, env-def _run_uninstall(env: dict[str, str]) -> subprocess.CompletedProcess[str]:+def _run_uninstall(env: dict[str, str], *flags: str) -> subprocess.CompletedProcess[str]:result = subprocess.run(- ["/bin/bash", str(UNINSTALL), "--keep-tcc"],+ ["/bin/bash", str(UNINSTALL), *flags],cwd=REPO_ROOT,env=env,text=True,@@ -188,3 +188,63 @@ def test_release_uninstall_ignores_marker_free_local_home(tmp_path: Path) -> Nonassert "cua-driver-local" not in (calls.read_text() if calls.exists() else "")assert (local_home / "unrelated.txt").read_text(encoding="utf-8") == "keep\n"assert "source-built cua-driver-local installation remains" not in result.stdout+++def _install_darwin_marker(home: Path) -> None:+ plist = home / "Library/LaunchAgents/com.trycua.cua-driver.plist"+ plist.parent.mkdir(parents=True, exist_ok=True)+ plist.write_text("fixture\n", encoding="utf-8")+++def _tccutil_calls(calls: Path) -> list[str]:+ if not calls.exists():+ return []+ return [line for line in calls.read_text(encoding="utf-8").splitlines() if line.startswith("tccutil:")]+++# `--purge` is left out on purpose: on macOS it runs the installed signed helper at+# /Applications/CuaDriver.app to destroy Computer History, which a sandbox cannot+# fake. It fails on a machine without that app (CI) and would run for real on one+# with it. The purge flow has its own tests (uninstall-history-purge-test.sh).[email protected]("flags", [(), ("--keep-tcc",)])+def test_uninstall_keeps_macos_permissions_by_default(tmp_path: Path, flags: tuple[str, ...]) -> None:+ """Accessibility and Screen Recording survive an uninstall unless asked.++ The grants belong to the signed app identity, so a reinstall of the same+ signed app picks them up. Wiping them by default is what made an accidental+ uninstall cost a manual re-approval (18 Oct 2026).+ """+ home, calls, env = _sandbox(tmp_path, "Darwin")+ _install_darwin_marker(home)++ result = _run_uninstall(env, *flags)++ assert _tccutil_calls(calls) == []+ assert "macOS permissions (Accessibility + Screen Recording) were kept" in result.stdout+ assert "--reset-permissions" in result.stdout++[email protected]("flag", ["--reset-permissions", "--reset-tcc"])+def test_uninstall_resets_macos_permissions_only_when_asked(tmp_path: Path, flag: str) -> None:+ home, calls, env = _sandbox(tmp_path, "Darwin")+ _install_darwin_marker(home)++ result = _run_uninstall(env, flag)++ assert _tccutil_calls(calls) == [+ "tccutil:reset Accessibility com.trycua.driver",+ "tccutil:reset ScreenCapture com.trycua.driver",+ "tccutil:reset AppleEvents com.trycua.driver",+ ]+ assert "were kept" not in result.stdout+++def test_uninstall_never_resets_permissions_on_linux(tmp_path: Path) -> None:+ home, calls, env = _sandbox(tmp_path, "Linux")+ unit = home / ".config/systemd/user/cua-driver.service"+ unit.parent.mkdir(parents=True)+ unit.write_text("fixture\n", encoding="utf-8")++ _run_uninstall(env, "--reset-permissions")++ assert _tccutil_calls(calls) == []diff --git a/libs/cua-driver/scripts/tests/test_uninstall_local.py b/libs/cua-driver/scripts/tests/test_uninstall_local.pyindex 6247bfdcce..5dbbd6368f 100644--- a/libs/cua-driver/scripts/tests/test_uninstall_local.py+++ b/libs/cua-driver/scripts/tests/test_uninstall_local.py@@ -3,6 +3,7 @@ from __future__ import annotationsimport jsonimport osfrom pathlib import Path+import shutilimport subprocess@@ -196,3 +197,64 @@ def test_unix_release_uninstaller_declares_local_detection_inputs() -> None:"/Applications/CuaDriverLocal.app",):assert token in unix+++def _darwin_local_sandbox(tmp_path: Path) -> tuple[Path, dict[str, str]]:+ """A fake macOS where nothing outside the sandbox HOME can be removed.++ uninstall-local.sh deletes /Applications/CuaDriverLocal.app on Darwin, so+ the `rm` and `sudo` shims make that a recorded no-op on a developer Mac.+ """+ home = tmp_path / "home"+ fake_bin = tmp_path / "fake-bin"+ calls = tmp_path / "calls.log"+ home.mkdir()+ for command in ("dirname", "readlink", "realpath", "rmdir"):+ executable = shutil.which(command, path=os.defpath)+ assert executable is not None, f"missing fixture utility: {command}"+ (fake_bin / command).parent.mkdir(parents=True, exist_ok=True)+ (fake_bin / command).symlink_to(executable)+ _executable(fake_bin / "uname", "printf 'Darwin\\n'")+ for command in ("pkill", "launchctl", "tccutil", "sudo", "rm"):+ _executable(fake_bin / command, f"printf '%s:%s\\n' '{command}' \"$*\" >> '{calls}'\n")+ env = {+ "HOME": str(home),+ "PATH": str(fake_bin),+ "CUA_DRIVER_LOCAL_HOME": str(home / ".cua-driver-local"),+ "CUA_DRIVER_LOCAL_INSTALL_DIR": str(home / ".local/bin"),+ }+ return calls, env+++def _run_local_uninstall(env: dict[str, str], *flags: str) -> None:+ result = subprocess.run(+ ["/bin/bash", str(UNINSTALL_LOCAL), "--force", *flags],+ cwd=REPO_ROOT,+ env=env,+ text=True,+ capture_output=True,+ check=False,+ )+ assert result.returncode == 0, result.stdout + result.stderr+++def test_local_uninstall_keeps_macos_permissions_by_default(tmp_path: Path) -> None:+ calls, env = _darwin_local_sandbox(tmp_path)++ _run_local_uninstall(env)++ recorded = calls.read_text(encoding="utf-8") if calls.exists() else ""+ assert "tccutil:" not in recorded+++def test_local_uninstall_resets_macos_permissions_only_when_asked(tmp_path: Path) -> None:+ calls, env = _darwin_local_sandbox(tmp_path)++ _run_local_uninstall(env, "--reset-permissions")++ lines = [line for line in calls.read_text(encoding="utf-8").splitlines() if line.startswith("tccutil:")]+ assert lines == [+ "tccutil:reset Accessibility com.trycua.driver.local",+ "tccutil:reset ScreenCapture com.trycua.driver.local",+ "tccutil:reset AppleEvents com.trycua.driver.local",+ ]diff --git a/libs/cua-driver/scripts/uninstall-local.sh b/libs/cua-driver/scripts/uninstall-local.shindex dcdcdcbe38..608d91091e 100755--- a/libs/cua-driver/scripts/uninstall-local.sh+++ b/libs/cua-driver/scripts/uninstall-local.sh@@ -3,17 +3,19 @@# cua-driver installation has different names and paths and is never touched.set -euo pipefail-RESET_TCC=1+# Opt in with --reset-permissions; the grant belongs to the signed app identity+# and is kept by default.+RESET_TCC=0FORCE=0VALIDATE_ONLY=0while [[ $# -gt 0 ]]; docase "$1" in--keep-tcc) RESET_TCC=0 ;;- --reset-tcc) RESET_TCC=1 ;;+ --reset-permissions|--reset-tcc) RESET_TCC=1 ;;--force) FORCE=1 ;;--validate-only) VALIDATE_ONLY=1 ;;--help|-h)- echo "Usage: $0 [--force] [--keep-tcc] [--validate-only]"+ echo "Usage: $0 [--force] [--reset-permissions] [--validate-only]"exit 0;;*) echo "error: unknown option: $1" >&2; exit 2 ;;diff --git a/libs/cua-driver/scripts/uninstall.sh b/libs/cua-driver/scripts/uninstall.shindex dc9e188a69..cde1b3160d 100755--- a/libs/cua-driver/scripts/uninstall.sh+++ b/libs/cua-driver/scripts/uninstall.sh@@ -53,9 +53,11 @@# live file in a directory selected for recursive deletion. Unproven entries# (including missing, relative and legacy-name-only commands) are kept.#-# Revokes TCC grants on macOS by default (Accessibility + Screen Recording)-# so the next install prompts cleanly under the new signing identity. Pass-# --keep-tcc to preserve grants across uninstall/reinstall.+# Keeps the macOS permissions (Accessibility + Screen Recording) by default, so+# an accidental or deliberate uninstall followed by a reinstall of the same+# signed app needs no new approval. Pass --reset-permissions to revoke them+# (Accessibility, Screen Recording and Automation for com.trycua.driver).+# --reset-tcc is the older spelling; --keep-tcc is accepted and does nothing.## Usage:# /bin/bash -c "$(curl -fsSL https://cua.ai/driver/uninstall.sh)"@@ -72,7 +74,7 @@ set -euo pipefail# flag flows through without edits.# ----------------------------------------------------------------------USE_RUST_BACKEND=1-RESET_TCC=1+RESET_TCC=0PURGE_DATA=0FORWARDED_ARGS=()PASSTHROUGH=0@@ -84,8 +86,9 @@ while [[ $# -gt 0 ]]; do--experimental-rust) shift ;; # legacy alias for default Rust path--backend=rust) shift ;;--backend=swift) shift ;; # retired Swift (no-op)- --reset-tcc) RESET_TCC=1; shift ;; # legacy/explicit default: revoke TCC grants- --keep-tcc) RESET_TCC=0; shift ;; # preserve TCC grants across reinstall+ --reset-permissions) RESET_TCC=1; shift ;; # opt in: revoke the macOS permissions+ --reset-tcc) RESET_TCC=1; shift ;; # older spelling of --reset-permissions+ --keep-tcc) RESET_TCC=0; shift ;; # the default; accepted for old callers--purge) PURGE_DATA=1; shift ;; # also delete pseudonymous identity + preference--backend=*)printf 'error: unknown backend %q; supported: rust\n' "${1#*=}" >&2@@ -358,10 +361,11 @@ reject_root_invocation() {fi}-# TCC revocation is on by default so uninstall leaves the next macOS install-# in a clean promptable state. The bundle id com.trycua.driver is shared with-# the retired Swift driver, so `--keep-tcc` remains available for users who-# intentionally want grants to survive uninstall/reinstall.+# TCC revocation is opt-in (--reset-permissions). The grants belong to the+# signed app identity, not to the files, so they survive an uninstall followed+# by a reinstall; wiping them by default made every accidental uninstall cost a+# manual re-approval in System Settings. Nothing that calls this script on a+# user's behalf (cua uninstall.sh --all, tests) passes the flag.# When enabled, revoke Accessibility + Screen-Recording + Automation for# com.trycua.driver. macOS-only; no-op elsewhere.maybe_reset_tcc() {@@ -391,7 +395,7 @@ maybe_reset_tcc() {filog "revoking TCC grants for com.trycua.driver"log " note: com.trycua.driver is shared with the retired Swift driver;"- log " this clears grants for both. Pass --keep-tcc to preserve them."+ log " this clears grants for both."for SVC in Accessibility ScreenCapture AppleEvents; doif tccutil reset "$SVC" com.trycua.driver >/dev/null 2>&1; thenlog " reset $SVC"@@ -962,9 +966,9 @@ TELEMETRYUNMSGif [[ "$RESET_TCC" != "1" ]]; thencat << 'FINALUNMSG'-TCC grants (Accessibility + Screen Recording) remain in System-Settings > Privacy & Security because uninstall was run with --keep-tcc.-Reset them explicitly if you want a clean re-install flow:+macOS permissions (Accessibility + Screen Recording) were kept, so+reinstalling Cua Driver needs no new approval. To revoke them as well,+re-run with --reset-permissions, or run:tccutil reset Accessibility com.trycua.drivertccutil reset ScreenCapture com.trycua.driver@@ -1205,9 +1209,9 @@ echo "cua-driver uninstalled."if [[ "$RESET_TCC" != "1" ]]; thencat << 'FINALUNMSG'-TCC grants (Accessibility + Screen Recording) remain in System-Settings > Privacy & Security because uninstall was run with --keep-tcc.-Reset them explicitly if you want a clean re-install flow:+macOS permissions (Accessibility + Screen Recording) were kept, so+reinstalling Cua Driver needs no new approval. To revoke them as well,+re-run with --reset-permissions, or run:tccutil reset Accessibility com.trycua.drivertccutil reset ScreenCapture com.trycua.driverdiff --git a/scripts/install/tests/test_uninstall.py b/scripts/install/tests/test_uninstall.pyindex 247a949277..933835ae31 100644--- a/scripts/install/tests/test_uninstall.py+++ b/scripts/install/tests/test_uninstall.py@@ -83,7 +83,7 @@ class Sandbox:write_executable(self.bin / "pgrep", "#!/bin/sh\nexit 1\n")for name in ("pkill", "launchctl", "systemctl", "security", "osascript", "defaults", "umount",- "diskutil", "pkgutil", "apt-get", "sudo", "secret-tool", "fusermount",+ "diskutil", "pkgutil", "apt-get", "sudo", "secret-tool", "fusermount", "tccutil",):self.fake_recording(name)write_executable(self.bin / "mount", "#!/bin/sh\ncat \"${FAKE_MOUNTS:-/dev/null}\"\n")@@ -509,6 +509,21 @@ class OtherToolsTest(unittest.TestCase):self.assertEqual(result.returncode, 0, result.stdout + result.stderr)self.assertEqual(self.log.read_text().splitlines(), ["driver ", "lume --force --purge"])+ def test_all_never_revokes_the_driver_macos_permissions(self):+ """The driver uninstaller keeps Accessibility and Screen Recording unless+ asked with --reset-permissions; --all must never ask (18 Oct 2026: an+ uninstall wiped the permissions of a Mac that was meant to keep them)."""+ box = Sandbox(tempfile.mkdtemp(dir=self.tmp.name), "Darwin")+ box.cli()+ result = box.run("--yes", "--all", "--delete-spaces", env=self.env())+ self.assertEqual(result.returncode, 0, result.stdout + result.stderr)+ self.assertEqual(self.log.read_text().splitlines()[0], "driver ")+ self.assertEqual([call for call in box.call_log() if call.startswith("tccutil")], [])+ for name in ("uninstall.sh", "uninstall.ps1"):+ script = (Path(__file__).resolve().parent.parent / name).read_text()+ self.assertNotIn("tccutil", script, name)+ self.assertNotIn("reset-permissions", script, name)+def test_on_linux_lume_is_skipped_and_the_driver_runs_even_with_nothing_else_installed(self):box = Sandbox(tempfile.mkdtemp(dir=self.tmp.name), "Linux")result = box.run("--yes", "--all", env=self.env())