nixpkgs/nixos/lib/testing
Maximilian Bosch c6978e8a58
nixos/test-driver: exit early if /dev/vhost-vsock isn't available
Right now it wrongly seems as if you can set
`sshBackdoor.enable = true;` for each test and not only for debugging
purposes.

This is wrong however since you'd need to pass /dev/vhost-vsock into the
sandbox for this (which is also a prerequisite for #392117).

To make that clear, two things were changed:

* add a warning to the manual to communicate this.
* exit both interactive and non-interactive driver early if
  /dev/vhost-vsock is missing and the ssh backdoor is enabled.

  If that's the case, we pass a CLI flag to the driver already in the
  interactive case. This change also sets the flag for the
  non-interactive case.

  That way we also get a better error if somebody tries to enable this
  on a system that doesn't support that.
2025-05-13 11:14:13 +02:00
..
call-test.nix
default.nix nixos/lib/testing: avoid generating darwin VM tests 2025-03-29 19:32:31 +01:00
driver.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
interactive.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
legacy.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
meta.nix nixos/lib/testing: avoid generating darwin VM tests 2025-03-29 19:32:31 +01:00
name.nix nixos/lib, doc: remove references to mdDoc (#300738) 2024-04-01 16:58:23 -07:00
network.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
nixos-test-base.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
nodes.nix nixos/test-driver: move sshBackdoor cfg from test-instrumentation to driver 2025-05-10 10:40:35 +02:00
pkgs.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
run.nix nixos/test-driver: exit early if /dev/vhost-vsock isn't available 2025-05-13 11:14:13 +02:00
testScript.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00