about summary refs log tree commit diff
path: root/nixos/lib
diff options
context:
space:
mode:
authorAlyssa Ross2021-04-27 13:52:15 +0000
committerAlyssa Ross2021-04-28 21:44:21 +0000
commita8afbb45c12be27b9b93a802e9e276595899ed5a (patch)
treeb4065c9ea79cf310b1b76976f21067761c206d88 /nixos/lib
parent81e1e68eaf6c765147da964d356f704030734dd2 (diff)
treewide: use lib.warnIf where appropriate
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/testing-python.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index 6192be1cd053..c7e45f55ce12 100644
--- a/nixos/lib/testing-python.nix
+++ b/nixos/lib/testing-python.nix
@@ -131,10 +131,8 @@ rec {
                   "it's currently ${toString testNameLen} characters long.")
             else
               "nixos-test-driver-${name}";
-
-          warn = if skipLint then lib.warn "Linting is disabled!" else lib.id;
         in
-        warn (runCommand testDriverName
+        lib.warnIf skipLint "Linting is disabled" (runCommand testDriverName
           {
             buildInputs = [ makeWrapper ];
             testScript = testScript';