From f189cc25c67fae38fb11ab75323ecdc2bb3ac9a8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 20 Aug 2026 19:32:29 +0900 Subject: [PATCH] test: synchronise before copying from vm The swaymsg calls do not wait for process to terminate. Signed-off-by: Ophestra --- test/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test.py b/test/test.py index 05001bdf..98f08275 100644 --- a/test/test.py +++ b/test/test.py @@ -46,8 +46,10 @@ def wait_for_window(pattern): def collect_state_ui(name): swaymsg(f"exec hakurei ps > '/tmp/{name}.ps'") + machine.wait_for_file(f"/tmp/{name}.ps") machine.copy_from_vm(f"/tmp/{name}.ps", "") swaymsg(f"exec hakurei --json ps > '/tmp/{name}.json'") + machine.wait_for_file(f"/tmp/{name}.json") machine.copy_from_vm(f"/tmp/{name}.json", "") machine.screenshot(name)