3
0
Fork 0
forked from mirrors/nixpkgs

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 <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-05-26 16:27:16 +02:00
parent 058c71498e
commit 3fd3911105
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -364,7 +364,9 @@ in mapAttrs mkVBoxTest {
simple-gui = '' simple-gui = ''
createVM_simple; createVM_simple;
$machine->succeed(ru "VirtualBox &"); $machine->succeed(ru "VirtualBox &");
$machine->waitForWindow(qr/Oracle VM VirtualBox Manager/); $machine->waitUntilSucceeds(
ru "xprop -name 'Oracle VM VirtualBox Manager'"
);
$machine->sleep(5); $machine->sleep(5);
$machine->screenshot("gui_manager_started"); $machine->screenshot("gui_manager_started");
$machine->sendKeys("ret"); $machine->sendKeys("ret");