aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-08-20 19:32:29 +0900
committerOphestra <cat@gensokyo.uk>2026-08-20 19:32:29 +0900
commitf189cc25c67fae38fb11ab75323ecdc2bb3ac9a8 (patch)
tree9ca2e8f1565188a8899147bc35b8182ae7c5ff3e /test
parentfa7e06ebd670830a0c589e5b24e6a15f2211f96b (diff)
test: synchronise before copying from vm
The swaymsg calls do not wait for process to terminate. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
-rw-r--r--test/test.py2
1 files changed, 2 insertions, 0 deletions
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)