1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-10 18:12:34 +09:00

nixosTests.xterm: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-14 23:03:42 +01:00
parent 7c1bc83f56
commit 20ad3329fe
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 21 additions and 25 deletions

View file

@ -1296,7 +1296,7 @@ in {
xrdp-with-audio-pulseaudio = handleTest ./xrdp-with-audio-pulseaudio.nix {}; xrdp-with-audio-pulseaudio = handleTest ./xrdp-with-audio-pulseaudio.nix {};
xscreensaver = handleTest ./xscreensaver.nix {}; xscreensaver = handleTest ./xscreensaver.nix {};
xss-lock = handleTest ./xss-lock.nix {}; xss-lock = handleTest ./xss-lock.nix {};
xterm = handleTest ./xterm.nix {}; xterm = runTest ./xterm.nix;
xxh = runTest ./xxh.nix; xxh = runTest ./xxh.nix;
yabar = runTest ./yabar.nix; yabar = runTest ./yabar.nix;
ydotool = handleTest ./ydotool.nix {}; ydotool = handleTest ./ydotool.nix {};

View file

@ -1,14 +1,11 @@
import ./make-test-python.nix ( { pkgs, ... }:
{ pkgs, ... }: {
{
name = "xterm"; name = "xterm";
meta = with pkgs.lib.maintainers; { meta = with pkgs.lib.maintainers; {
maintainers = [ nequissimus ]; maintainers = [ nequissimus ];
}; };
nodes.machine = nodes.machine = {
{ pkgs, ... }:
{
imports = [ ./common/x11.nix ]; imports = [ ./common/x11.nix ];
services.xserver.desktopManager.xterm.enable = false; services.xserver.desktopManager.xterm.enable = false;
}; };
@ -22,5 +19,4 @@ import ./make-test-python.nix (
assert "${pkgs.xterm.version}" in machine.succeed("cat /tmp/xterm_version") assert "${pkgs.xterm.version}" in machine.succeed("cat /tmp/xterm_version")
machine.screenshot("window") machine.screenshot("window")
''; '';
} }
)