From eb9bcfe300b3bfcc611f04ee85bbeeffddc8bfa9 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Thu, 8 Oct 2020 12:20:27 +0200 Subject: [PATCH] sudo: add the nixosTest to passthru.tests --- pkgs/tools/security/sudo/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index 3cc9039a8f0..cf43b73eb7d 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, coreutils, pam, groff, sssd +{ stdenv, fetchurl, coreutils, pam, groff, sssd, nixosTests , sendmailPath ? "/run/wrappers/bin/sendmail" , withInsults ? false , withSssd ? false @@ -61,6 +61,8 @@ stdenv.mkDerivation rec { rm -f $out/share/doc/sudo/ChangeLog ''; + passthru.tests = { inherit (nixosTests) sudo; }; + meta = { description = "A command to run commands as root";