diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-02 16:15:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-02 16:37:08 +0900 |
| commit | 0e5ca74b983f3a60c3e251f7794a1cad85d296fa (patch) | |
| tree | fb77863662d4059b7b942ed6e995fd592f01eec4 /test/test.py | |
| parent | 23ae7822bf292b6064c1dfb811b9f71ae3d4a0cc (diff) | |
cmd/hakurei/print: serialise array for ps
Wanted to do this for a long time, since the key is redundant. This also makes it easier to migrate to the new store interface.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/test.py')
| -rw-r--r-- | test/test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.py b/test/test.py index cfc2f843..839a2b4e 100644 --- a/test/test.py +++ b/test/test.py @@ -56,7 +56,7 @@ def check_state(name, enablements): instances = json.loads(machine.succeed("sudo -u alice -i XDG_RUNTIME_DIR=/run/user/1000 hakurei --json ps")) if len(instances) != 1: raise Exception(f"unexpected state length {len(instances)}") - instance = next(iter(instances.values())) + instance = instances[0] command = f"{name}-start" if not (instance['container']['path'].startswith("/nix/store/")) or not (instance['container']['path'].endswith(command)): |
