From af9919437929fa35e25d2afb068067f9f7c31443 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 29 Apr 2021 19:42:12 +0200 Subject: [PATCH] nixos/tests/cage: Increase the xterm font size to fix the test The result still looks far from ideal but at least it gets recognized now. "-fa Monospace" is required to switch to a font from the FreeType library so that "-fs 24" works. Note: Using linuxPackages_latest is not required anymore. --- nixos/tests/cage.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/nixos/tests/cage.nix b/nixos/tests/cage.nix index 2d4dacfc0e7f..69cc76d315f2 100644 --- a/nixos/tests/cage.nix +++ b/nixos/tests/cage.nix @@ -13,18 +13,10 @@ import ./make-test-python.nix ({ pkgs, ...} : services.cage = { enable = true; user = "alice"; - program = "${pkgs.xterm}/bin/xterm -cm -pc"; # disable color and bold to make OCR easier + # Disable color and bold and use a larger font to make OCR easier: + program = "${pkgs.xterm}/bin/xterm -cm -pc -fa Monospace -fs 24"; }; - # this needs a fairly recent kernel, otherwise: - # [backend/drm/util.c:215] Unable to add DRM framebuffer: No such file or directory - # [backend/drm/legacy.c:15] Virtual-1: Failed to set CRTC: No such file or directory - # [backend/drm/util.c:215] Unable to add DRM framebuffer: No such file or directory - # [backend/drm/legacy.c:15] Virtual-1: Failed to set CRTC: No such file or directory - # [backend/drm/drm.c:618] Failed to initialize renderer on connector 'Virtual-1': initial page-flip failed - # [backend/drm/drm.c:701] Failed to initialize renderer for plane - boot.kernelPackages = pkgs.linuxPackages_latest; - virtualisation.memorySize = 1024; };