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:
parent
058c71498e
commit
3fd3911105
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue