Skip to content

Commit

Permalink
testers.nixosTest: Move warning and add link
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
roberth committed Apr 22, 2024
1 parent 4e69ce4 commit 4e54377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/testers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 =
Expand Down

0 comments on commit 4e54377

Please sign in to comment.