Merge pull request #49355 from Mic92/sddm
nixos/plasma5: disable ocr tests
This commit is contained in:
commit
4249dc2fe7
|
@ -26,31 +26,20 @@ import ./make-test.nix ({ pkgs, ...} :
|
||||||
services.xserver.displayManager.sddm.theme = "breeze-ocr-theme";
|
services.xserver.displayManager.sddm.theme = "breeze-ocr-theme";
|
||||||
services.xserver.desktopManager.plasma5.enable = true;
|
services.xserver.desktopManager.plasma5.enable = true;
|
||||||
services.xserver.desktopManager.default = "plasma5";
|
services.xserver.desktopManager.default = "plasma5";
|
||||||
|
services.xserver.displayManager.sddm.autoLogin = {
|
||||||
|
enable = true;
|
||||||
|
user = "alice";
|
||||||
|
};
|
||||||
virtualisation.memorySize = 1024;
|
virtualisation.memorySize = 1024;
|
||||||
environment.systemPackages = [ sddm_theme ];
|
environment.systemPackages = [ sddm_theme ];
|
||||||
|
|
||||||
# fontconfig-penultimate-0.3.3 -> 0.3.4 broke OCR apparently, but no idea why.
|
|
||||||
nixpkgs.config.packageOverrides = superPkgs: {
|
|
||||||
fontconfig-penultimate = superPkgs.fontconfig-penultimate.override {
|
|
||||||
version = "0.3.3";
|
|
||||||
sha256 = "1z76jbkb0nhf4w7fy647yyayqr4q02fgk6w58k0yi700p0m3h4c9";
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
enableOCR = true;
|
|
||||||
|
|
||||||
testScript = { nodes, ... }: let
|
testScript = { nodes, ... }: let
|
||||||
user = nodes.machine.config.users.users.alice;
|
user = nodes.machine.config.users.users.alice;
|
||||||
xdo = "${pkgs.xdotool}/bin/xdotool";
|
xdo = "${pkgs.xdotool}/bin/xdotool";
|
||||||
in ''
|
in ''
|
||||||
startAll;
|
startAll;
|
||||||
# Wait for display manager to start
|
# wait for log in
|
||||||
$machine->waitForText(qr/${user.description}/);
|
|
||||||
$machine->screenshot("sddm");
|
|
||||||
|
|
||||||
# Log in
|
|
||||||
$machine->sendChars("${user.password}\n");
|
|
||||||
$machine->waitForFile("/home/alice/.Xauthority");
|
$machine->waitForFile("/home/alice/.Xauthority");
|
||||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue