nixosTests.xpadneo: migrate to runTest

Part Of #386873

Changed files
+17 -19
nixos
+1 -1
nixos/tests/all-tests.nix
···
xfce-wayland = handleTest ./xfce-wayland.nix {};
xmonad = handleTest ./xmonad.nix {};
xmonad-xdg-autostart = handleTest ./xmonad-xdg-autostart.nix {};
-
xpadneo = handleTest ./xpadneo.nix {};
+
xpadneo = runTest ./xpadneo.nix;
xrdp = runTest ./xrdp.nix;
xrdp-with-audio-pulseaudio = runTest ./xrdp-with-audio-pulseaudio.nix;
xscreensaver = handleTest ./xscreensaver.nix {};
+16 -18
nixos/tests/xpadneo.nix
···
-
import ./make-test-python.nix (
-
{ lib, pkgs, ... }:
-
{
-
name = "xpadneo";
-
meta.maintainers = with lib.maintainers; [ kira-bruneau ];
+
{ lib, pkgs, ... }:
+
{
+
name = "xpadneo";
+
meta.maintainers = with lib.maintainers; [ kira-bruneau ];
-
nodes = {
-
machine = {
-
config.hardware.xpadneo.enable = true;
-
};
+
nodes = {
+
machine = {
+
config.hardware.xpadneo.enable = true;
};
+
};
-
# This is just a sanity check to make sure the module was
-
# loaded. We'd have to find some way to mock an xbox controller if
-
# we wanted more in-depth testing.
-
testScript = ''
-
machine.start();
-
machine.succeed("modinfo hid_xpadneo | grep 'version:\s\+${pkgs.linuxPackages.xpadneo.version}'")
-
'';
-
}
-
)
+
# This is just a sanity check to make sure the module was
+
# loaded. We'd have to find some way to mock an xbox controller if
+
# we wanted more in-depth testing.
+
testScript = ''
+
machine.start();
+
machine.succeed("modinfo hid_xpadneo | grep 'version:\s\+${pkgs.linuxPackages.xpadneo.version}'")
+
'';
+
}