From 3fd3911105c9d5e9339ce630d37952b2ef7ca407 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 26 May 2016 16:27:16 +0200 Subject: [PATCH] nixos/tests/vbox: Replace waitForWindow with xprop We can't use waitForWindow here because it runs xwininfo as user root, who in turn is not authorized to connect to the X server running as alice. So instead, we use xprop from user alice which should fix waiting for the VirtualBox manager window. Signed-off-by: aszlig --- nixos/tests/virtualbox.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index 06efb034c08..818e3b8a88a 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -364,7 +364,9 @@ in mapAttrs mkVBoxTest { simple-gui = '' createVM_simple; $machine->succeed(ru "VirtualBox &"); - $machine->waitForWindow(qr/Oracle VM VirtualBox Manager/); + $machine->waitUntilSucceeds( + ru "xprop -name 'Oracle VM VirtualBox Manager'" + ); $machine->sleep(5); $machine->screenshot("gui_manager_started"); $machine->sendKeys("ret");