forked from mirrors/nixpkgs
Make the login test a bit more robust
http://hydra.nixos.org/build/10397037
This commit is contained in:
parent
ffedee6ed5
commit
9f65e82b59
|
@ -9,7 +9,8 @@ import ./make-test.nix ({ pkgs, latestKernel ? false, ... }:
|
||||||
|
|
||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
$machine->waitForUnit("default.target");
|
$machine->waitForUnit('multi-user.target');
|
||||||
|
$machine->waitUntilSucceeds("pgrep -f 'agetty.*tty1'");
|
||||||
$machine->screenshot("postboot");
|
$machine->screenshot("postboot");
|
||||||
|
|
||||||
subtest "create user", sub {
|
subtest "create user", sub {
|
||||||
|
@ -19,9 +20,11 @@ import ./make-test.nix ({ pkgs, latestKernel ? false, ... }:
|
||||||
|
|
||||||
# Check whether switching VTs works.
|
# Check whether switching VTs works.
|
||||||
subtest "virtual console switching", sub {
|
subtest "virtual console switching", sub {
|
||||||
|
$machine->fail("pgrep -f 'agetty.*tty2'");
|
||||||
$machine->sendKeys("alt-f2");
|
$machine->sendKeys("alt-f2");
|
||||||
$machine->waitUntilSucceeds("[ \$(fgconsole) = 2 ]");
|
$machine->waitUntilSucceeds("[ \$(fgconsole) = 2 ]");
|
||||||
$machine->waitForUnit('getty@tty2.service');
|
$machine->waitForUnit('getty@tty2.service');
|
||||||
|
$machine->waitUntilSucceeds("pgrep -f 'agetty.*tty2'");
|
||||||
};
|
};
|
||||||
|
|
||||||
# Log in as alice on a virtual console.
|
# Log in as alice on a virtual console.
|
||||||
|
|
Loading…
Reference in a new issue