diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-09 18:08:17 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-09 18:08:17 +0900 |
| commit | 928a9f61e92b1570a81d005e1c2e7e849336856f (patch) | |
| tree | ba47cd889d0a4eb3a85f633f1b4ba39c40f3cb08 /test | |
| parent | ce06539ecaf07b5fe572b3c190b69bd01aaa7c93 (diff) | |
cmd/hsu: remove parent check
This check serves no real purpose and only makes it more difficult to start containers.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
| -rw-r--r-- | test/interactive/trace.nix | 9 | ||||
| -rw-r--r-- | test/test.py | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/test/interactive/trace.nix b/test/interactive/trace.nix index e307361f..b9ef872c 100644 --- a/test/interactive/trace.nix +++ b/test/interactive/trace.nix @@ -22,7 +22,14 @@ in { name = "funcgraph-retval"; patch = null; - structuredExtraConfig.FUNCTION_GRAPH_RETVAL = lib.kernel.yes; + structuredExtraConfig = with lib.kernel; { + FUNCTION_GRAPH_RETVAL = yes; + + RUST = lib.mkForce unset; + DRM_NOVA = lib.mkForce unset; + DRM_PANIC_SCREEN_QR_CODE = lib.mkForce unset; + NOVA_CORE = lib.mkForce unset; + }; } ]; } diff --git a/test/test.py b/test/test.py index a9e60d8b..05001bdf 100644 --- a/test/test.py +++ b/test/test.py @@ -92,8 +92,10 @@ print(denyOutput) denyOutputVerbose = machine.fail("sudo -u untrusted -i hakurei -v exec &>/dev/stdout") print(denyOutputVerbose) -# Fail direct hsu call: -print(machine.fail("sudo -u alice -i hsu")) +# Direct hsu call: +userid = machine.succeed("sudo -u alice -i hsu") +if userid != "0": + raise Exception(f"unexpected userid: {userid}") # Verify hsu fault behaviour: if denyOutput != "hsu: uid 1001 is not in the hsurc file\n": |
