diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-05-26 16:27:16 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-05-26 16:48:32 +0200 |
commit | 3fd3911105c9d5e9339ce630d37952b2ef7ca407 (patch) | |
tree | 3ee2d001e057630cc8eeeb002a48ad6c85ae1ef1 /nixos/tests/virtualbox.nix | |
parent | 058c71498ebf922de7f7db8046726bb05062fbe4 (diff) |
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>
Diffstat (limited to 'nixos/tests/virtualbox.nix')
-rw-r--r-- | nixos/tests/virtualbox.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index 06efb034c0861..818e3b8a88a04 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"); |