Merge pull request #39297 from xeji/tests/gnome3-gdm
nixos/tests/gnome3-gdm: fix broken test
This commit is contained in:
commit
bf6998bdfa
|
@ -26,15 +26,22 @@ import ./make-test.nix ({ pkgs, ...} : {
|
||||||
|
|
||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
|
# wait for gdm to start and bring up X
|
||||||
|
$machine->waitForUnit("display-manager.service");
|
||||||
$machine->waitForX;
|
$machine->waitForX;
|
||||||
$machine->sleep(15);
|
|
||||||
|
# wait for alice to be logged in
|
||||||
|
$machine->waitForUnit("default.target","alice");
|
||||||
|
|
||||||
# Check that logging in has given the user ownership of devices.
|
# Check that logging in has given the user ownership of devices.
|
||||||
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");
|
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");
|
||||||
|
|
||||||
$machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'");
|
# open a terminal and check it's there
|
||||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
$machine->succeed("su - alice -c 'DISPLAY=:0.0 XAUTHORITY=/run/user/\$UID/gdm/Xauthority gnome-terminal'");
|
||||||
|
$machine->succeed("xauth merge /run/user/1000/gdm/Xauthority");
|
||||||
$machine->waitForWindow(qr/Terminal/);
|
$machine->waitForWindow(qr/Terminal/);
|
||||||
|
|
||||||
|
# wait to get a nice screenshot
|
||||||
$machine->sleep(20);
|
$machine->sleep(20);
|
||||||
$machine->screenshot("screen");
|
$machine->screenshot("screen");
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue