aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test.py
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-25 01:52:49 +0900
committerOphestra <cat@gensokyo.uk>2025-03-25 01:52:49 +0900
commit5c4058d5ac7e7944973ca8216c258fc50c194e22 (patch)
treec06597903233c75eca5a1edae8b06d93f0f81774 /test/test.py
parente732dca7629edb503df0c65df5f37a99600d567d (diff)
app: run in native sandbox
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/test.py')
-rw-r--r--test/test.py9
1 files changed, 6 insertions, 3 deletions
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']}")