mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/tests/systemd-binfmt: chroot: Assert extra-sandbox-path == []
This commit is contained in:
@@ -103,7 +103,12 @@ in
|
||||
chroot = makeTest {
|
||||
name = "systemd-binfmt-chroot";
|
||||
nodes.machine =
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
boot.binfmt.emulatedSystems = [
|
||||
"aarch64-linux"
|
||||
@@ -121,6 +126,13 @@ in
|
||||
echo 42 | chroot /tmp/chroot /yaml2json | grep 42
|
||||
'')
|
||||
];
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.nix.settings.extra-sandbox-paths == [ ];
|
||||
message = "Using binfmt_misc with static emulators, nix.settings.extra-sandbox-paths should be empty";
|
||||
}
|
||||
];
|
||||
};
|
||||
testScript = ''
|
||||
machine.start()
|
||||
|
||||
Reference in New Issue
Block a user