mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
lib/tests: remove deprecated dontRun
This commit is contained in:
parent
472526d7aa
commit
f1b5c2c593
1 changed files with 5 additions and 20 deletions
|
@ -13,22 +13,14 @@ let
|
|||
{
|
||||
name,
|
||||
nvim,
|
||||
# TODO: Deprecated 2024-08-20, remove after 24.11
|
||||
dontRun ? false,
|
||||
...
|
||||
}@args:
|
||||
}:
|
||||
let
|
||||
# FIXME: this doesn't support helpers.enableExceptInTests, a context option would be better
|
||||
result = nvim.extend {
|
||||
config.test =
|
||||
{
|
||||
inherit name;
|
||||
}
|
||||
// lib.optionalAttrs (args ? dontRun) (
|
||||
lib.warn
|
||||
"mkTestDerivationFromNvim: the `dontRun` argument is deprecated. You should use the `test.runNvim` module option instead."
|
||||
{ runNvim = !dontRun; }
|
||||
);
|
||||
config.test = {
|
||||
inherit name;
|
||||
};
|
||||
};
|
||||
in
|
||||
result.config.build.test;
|
||||
|
@ -41,9 +33,7 @@ let
|
|||
pkgs ? defaultPkgs,
|
||||
module,
|
||||
extraSpecialArgs ? { },
|
||||
# TODO: Deprecated 2024-08-20, remove after 24.11
|
||||
dontRun ? false,
|
||||
}@args:
|
||||
}:
|
||||
let
|
||||
# NOTE: we are importing this just for evalNixvim
|
||||
helpers = self.lib.nixvim.override {
|
||||
|
@ -56,11 +46,6 @@ let
|
|||
modules = [
|
||||
module
|
||||
(lib.optionalAttrs (name != null) { test.name = name; })
|
||||
(lib.optionalAttrs (args ? dontRun) (
|
||||
lib.warn
|
||||
"mkTestDerivationFromNixvimModule: the `dontRun` argument is deprecated. You should use the `test.runNvim` module option instead."
|
||||
{ config.test.runNvim = !dontRun; }
|
||||
))
|
||||
{ wrapRc = true; }
|
||||
# TODO: Only do this when `args?pkgs`
|
||||
# Consider deprecating the `pkgs` arg too...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue