nixosTests.doas: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-03-31 22:43:40 +02:00 committed by Masum Reza
parent 51dc163364
commit 209baee20b
2 changed files with 132 additions and 134 deletions

View file

@ -330,7 +330,7 @@ in {
discourse = handleTest ./discourse.nix {};
dnscrypt-proxy2 = handleTestOn ["x86_64-linux"] ./dnscrypt-proxy2.nix {};
dnsdist = import ./dnsdist.nix { inherit pkgs runTest; };
doas = handleTest ./doas.nix {};
doas = runTest ./doas.nix;
docker = handleTestOn ["aarch64-linux" "x86_64-linux"] ./docker.nix {};
docker-rootless = handleTestOn ["aarch64-linux" "x86_64-linux"] ./docker-rootless.nix {};
docker-registry = handleTest ./docker-registry.nix {};

View file

@ -1,7 +1,6 @@
# Some tests to ensure doas is working properly.
import ./make-test-python.nix (
{ lib, ... }:
{
{ lib, ... }:
{
name = "doas";
meta.maintainers = with lib.maintainers; [ cole-h ];
@ -149,5 +148,4 @@ import ./make-test-python.nix (
if not "test0" in dirs:
raise Exception(f"user profile TERMINFO_DIRS is not preserved: {dirs}")
'';
}
)
}