diff options
Diffstat (limited to 'test/test.py')
| -rw-r--r-- | test/test.py | 9 |
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']}") |
