test/sandbox: check tty outcome

This makes no difference currently but has different behaviour in the native sandbox.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-23 17:28:57 +09:00
parent 46059b1840
commit b71d2bf534
5 changed files with 231 additions and 1 deletions

View File

@@ -40,9 +40,10 @@ let
{
name = "check-sandbox-${tc.name}";
verbose = true;
inherit (tc) tty;
share = foot;
packages = [ ];
command = builtins.toString (checkSandbox tc.name tc.want);
command = "${checkSandbox tc.name tc.want} > /dev/console";
extraPaths = [
{
src = "/proc/mounts";
@@ -53,4 +54,5 @@ let
in
{
preset = callTestCase ./preset.nix;
tty = callTestCase ./tty.nix;
}