test: synchronise before copying from vm
Test / ShareFS (push) Successful in 31s
Test / Sandbox (push) Successful in 37s
Test / Sandbox (race detector) (push) Successful in 38s
Test / Create distribution (push) Successful in 56s
Test / Hakurei (push) Successful in 3m24s
Test / Hakurei (race detector) (push) Successful in 4m0s
Test / Flake checks (push) Successful in 1m12s
Test / ShareFS (push) Successful in 31s
Test / Sandbox (push) Successful in 37s
Test / Sandbox (race detector) (push) Successful in 38s
Test / Create distribution (push) Successful in 56s
Test / Hakurei (push) Successful in 3m24s
Test / Hakurei (race detector) (push) Successful in 4m0s
Test / Flake checks (push) Successful in 1m12s
The swaymsg calls do not wait for process to terminate. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user