From 9e48d7f5626aa966a23754534f3120855d6a7c32 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 01:50:56 +0900 Subject: hst/config: move container fields from toplevel This change also moves pd behaviour to cmd/hakurei, as this does not belong in the hst API. Signed-off-by: Ophestra --- test/test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test.py') diff --git a/test/test.py b/test/test.py index a1e6b0f5..f4e34934 100644 --- a/test/test.py +++ b/test/test.py @@ -61,14 +61,14 @@ def check_state(name, enablements): config = instance['config'] command = f"{name}-start" - if not (config['path'].startswith("/nix/store/")) or not (config['path'].endswith(command)): + if not (config['container']['path'].startswith("/nix/store/")) or not (config['container']['path'].endswith(command)): raise Exception(f"unexpected path {config['path']}") - if len(config['args']) != 1 or config['args'][0] != command: + if len(config['container']['args']) != 1 or config['container']['args'][0] != command: raise Exception(f"unexpected args {config['args']}") if config['enablements'] != enablements: - raise Exception(f"unexpected enablements {instance['config']['enablements']}") + raise Exception(f"unexpected enablements {config['enablements']['enablements']}") def hakurei(command): @@ -104,7 +104,7 @@ if denyOutputVerbose != "hsu: uid 1001 is not in the hsurc file\nhakurei: *canno raise Exception(f"unexpected deny verbose output:\n{denyOutputVerbose}") # Verify timeout behaviour: -machine.succeed('sudo -u alice -i hakurei-check-linger-timeout > /var/tmp/linger-stdout 2> /var/tmp/linger-stderr') +machine.succeed('sudo -u alice -i hakurei-check-linger-timeout > /var/tmp/linger-stdout 2> /var/tmp/linger-stderr || (cat /var/tmp/linger-stderr; false)') linger_stdout = machine.succeed("cat /var/tmp/linger-stdout") linger_stderr = machine.succeed("cat /var/tmp/linger-stderr") if linger_stdout != "": -- cgit v1.3.1