forked from mirrors/nixpkgs
nixos/tests/gnome3: fix terminal title
The tests passes, but that's just because a race condition where the window is titled `Terminal` long enough.
This commit is contained in:
parent
373be8207a
commit
80fdafb373
|
@ -33,7 +33,7 @@ import ./make-test.nix ({ pkgs, ...} : {
|
||||||
|
|
||||||
$machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'");
|
$machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'");
|
||||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
||||||
$machine->waitForWindow(qr/Terminal/);
|
$machine->waitForWindow(qr/alice.*machine/);
|
||||||
$machine->succeed("timeout 900 bash -c 'while read msg; do if [[ \$msg =~ \"GNOME Shell started\" ]]; then break; fi; done < <(journalctl -f)'");
|
$machine->succeed("timeout 900 bash -c 'while read msg; do if [[ \$msg =~ \"GNOME Shell started\" ]]; then break; fi; done < <(journalctl -f)'");
|
||||||
$machine->sleep(10);
|
$machine->sleep(10);
|
||||||
$machine->screenshot("screen");
|
$machine->screenshot("screen");
|
||||||
|
|
Loading…
Reference in a new issue