nixos/tests/i3wm: prevent non-deterministic failure (#45759)
Test failed sporadically on Hydra, probably due to timing issues. These changes should make that less likely to occur.
This commit is contained in:
parent
ff6a61ad1b
commit
70b3ac8378
@ -16,18 +16,20 @@ import ./make-test.nix ({ pkgs, ...} : {
|
||||
$machine->waitForFile("/home/alice/.Xauthority");
|
||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
||||
$machine->waitForWindow(qr/first configuration/);
|
||||
$machine->sleep(1);
|
||||
$machine->sleep(2);
|
||||
$machine->screenshot("started");
|
||||
$machine->sendKeys("ret");
|
||||
$machine->sleep(1);
|
||||
$machine->sleep(2);
|
||||
$machine->sendKeys("alt");
|
||||
$machine->sleep(1);
|
||||
$machine->sleep(2);
|
||||
$machine->screenshot("configured");
|
||||
$machine->sendKeys("ret");
|
||||
# make sure the config file is created before we continue
|
||||
$machine->waitForFile("/home/alice/.config/i3/config");
|
||||
$machine->sleep(2);
|
||||
$machine->sendKeys("alt-ret");
|
||||
$machine->waitForWindow(qr/machine.*alice/);
|
||||
$machine->sleep(1);
|
||||
$machine->sleep(2);
|
||||
$machine->screenshot("terminal");
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user