nixosTests.apcupsd: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt
2025-03-13 23:27:09 +01:00
parent 931d6c6af4
commit 884c15c72f
2 changed files with 37 additions and 39 deletions

View File

@@ -169,7 +169,7 @@ in {
angie-api = runTest ./angie-api.nix;
anki-sync-server = runTest ./anki-sync-server.nix;
anuko-time-tracker = runTest ./anuko-time-tracker.nix;
apcupsd = handleTest ./apcupsd.nix {};
apcupsd = runTest ./apcupsd.nix;
apfs = runTest ./apfs.nix;
appliance-repart-image = runTest ./appliance-repart-image.nix;
appliance-repart-image-verity-store = runTest ./appliance-repart-image-verity-store.nix;

View File

@@ -2,9 +2,8 @@ let
# arbitrary address
ipAddr = "192.168.42.42";
in
import ./make-test-python.nix (
{ lib, pkgs, ... }:
{
{ lib, ... }:
{
name = "apcupsd";
meta.maintainers = with lib.maintainers; [ bjornfor ];
@@ -42,5 +41,4 @@ import ./make-test-python.nix (
assert "MBATTCHG : 42 Percent" in res, f"expected apcaccess output to contain '{expect_line}' but got '{res}'"
machine.shutdown()
'';
}
)
}