nixosTests.hardened: fix for recent Nix

As far as I know, there's no stable equivalent of nix ping-store.
This commit is contained in:
Alyssa Ross 2022-07-08 17:01:41 +00:00
parent d440cc931e
commit a14da86f2c
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -90,8 +90,8 @@ import ./make-test-python.nix ({ pkgs, ... } : {
# Test Nix dæmon usage # Test Nix dæmon usage
with subtest("nix-daemon cannot be used by all users"): with subtest("nix-daemon cannot be used by all users"):
machine.fail("su -l nobody -s /bin/sh -c 'nix ping-store'") machine.fail("su -l nobody -s /bin/sh -c 'nix --extra-experimental-features nix-command ping-store'")
machine.succeed("su -l alice -c 'nix ping-store'") machine.succeed("su -l alice -c 'nix --extra-experimental-features nix-command ping-store'")
# Test kernel image protection # Test kernel image protection