From 4e543778c4434b18f312622b86b513b9dc3f6111 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 10 Mar 2024 10:13:52 +0100 Subject: [PATCH] testers.nixosTest: Move warning and add link This way ofborg doesn't see it and fail. Unfortunately, it will cause more warnings than it otherwise would, if multiple tests are evaluated in one go. --- pkgs/build-support/testers/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/testers/default.nix b/pkgs/build-support/testers/default.nix index c2eda4e716ed0..342d37462ad80 100644 --- a/pkgs/build-support/testers/default.nix +++ b/pkgs/build-support/testers/default.nix @@ -118,7 +118,6 @@ * make sense for this evaluation of Nixpkgs. */ nixosTesting = - lib.warn "testers.nixosTest is deprecated. Use testers.runNixOSTest instead." (import ../../../nixos/lib/testing-python.nix { inherit (stdenv.hostPlatform) system; inherit pkgs; @@ -136,6 +135,7 @@ else test; calledTest = lib.toFunction loadedTest pkgs; in + lib.warn "testers.nixosTest is deprecated. Use testers.runNixOSTest instead. See https://nixos.org/manual/nixpkgs/unstable/#tester-runNixOSTest" nixosTesting.simpleTest calledTest; hasPkgConfigModule =