From 5c4058d5ac7e7944973ca8216c258fc50c194e22 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Mar 2025 01:52:49 +0900 Subject: app: run in native sandbox Signed-off-by: Ophestra --- test/test.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/test.py') diff --git a/test/test.py b/test/test.py index b3f8e9ed..e53d5921 100644 --- a/test/test.py +++ b/test/test.py @@ -62,9 +62,12 @@ def check_state(name, enablements): config = instance['config'] - if len(config['command']) != 1 or not (config['command'][0].startswith("/nix/store/")) or not ( - config['command'][0].endswith(f"{name}-start")): - raise Exception(f"unexpected command {instance['config']['command']}") + command = f"{name}-start" + if not (config['path'].startswith("/nix/store/")) or not (config['path'].endswith(command)): + raise Exception(f"unexpected path {config['path']}") + + if len(config['args']) != 1 or config['args'][0] != command: + raise Exception(f"unexpected args {config['args']}") if config['confinement']['enablements'] != enablements: raise Exception(f"unexpected enablements {instance['config']['confinement']['enablements']}") -- cgit v1.3.1