nixos/tests/plotinus: fix non-deterministic failure (#40239)
Test failed sometimes, likely because a window didn't get focus.
This commit is contained in:
parent
f8d047da50
commit
558f4b3368
|
@ -15,11 +15,11 @@ import ./make-test.nix ({ pkgs, ... }: {
|
||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
$machine->waitForX;
|
$machine->waitForX;
|
||||||
$machine->execute("xterm -e 'gnome-calculator' &");
|
$machine->succeed("gnome-calculator &");
|
||||||
$machine->waitForWindow(qr/Calculator/);
|
$machine->waitForWindow(qr/gnome-calculator/);
|
||||||
$machine->execute("xdotool key ctrl+shift+p");
|
$machine->succeed("xdotool search --sync --onlyvisible --class gnome-calculator windowfocus --sync key ctrl+shift+p");
|
||||||
$machine->sleep(1); # wait for the popup
|
$machine->sleep(5); # wait for the popup
|
||||||
$machine->execute("xdotool key p r e f e r e n c e s Return");
|
$machine->succeed("xdotool key --delay 100 p r e f e r e n c e s Return");
|
||||||
$machine->waitForWindow(qr/Preferences/);
|
$machine->waitForWindow(qr/Preferences/);
|
||||||
$machine->screenshot("screen");
|
$machine->screenshot("screen");
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue