From d461aa6568b7855e5396bffdeda3bdd644c06d84 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Wed, 7 Oct 2026 19:49:21 +0800 Subject: [PATCH] test(nix): expose collector ownership in the VM --- nix/tests/native-runtime.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/tests/native-runtime.nix b/nix/tests/native-runtime.nix index c2e11f4..04c49c6 100644 --- a/nix/tests/native-runtime.nix +++ b/nix/tests/native-runtime.nix @@ -77,6 +77,9 @@ pkgs.testers.runNixOSTest { machine.wait_until_succeeds("! kill -0 $(cat /tmp/gp-gui-ready)", timeout=timedelta(seconds=30)) # The optional collector lives in the NixOS system profile, outside the package's tool closure. + print(machine.succeed("stat -c '%a:%u:%n' / /nix /nix/store /run/current-system/sw/bin")) + print(machine.succeed("stat -Lc '%a:%u:%n' /run/current-system/sw/bin/clamscan")) + print(machine.succeed("/run/current-system/sw/bin/clamscan --version")) report = machine.succeed(package + "/bin/gpclient hip --client-version 6.3.3-619 " "--client-os Linux --cookie fixture --md5 0123456789abcdef0123456789abcdef") assert "ClamAV" in report, report