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>
commit3fd3911105c9d5e9339ce630d37952b2ef7ca407
authoraszlig <aszlig@redmoonstudios.org>
dateThu 26 May 2016, 16:27 (11 years ago)
parent058c714
nixos/tests/virtualbox.nix+3−1
@@ -364,7 +364,9 @@ in mapAttrs mkVBoxTest {
364364 simple-gui = ''
365365 createVM_simple;
366366 $machine->succeed(ru "VirtualBox &");
367− $machine->waitForWindow(qr/Oracle VM VirtualBox Manager/);
367+ $machine->waitUntilSucceeds(
368+ ru "xprop -name 'Oracle VM VirtualBox Manager'"
369+ );
368370 $machine->sleep(5);
369371 $machine->screenshot("gui_manager_started");
370372 $machine->sendKeys("ret");