mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 14:45:26 +02:00
tests: cleanup tests to better use callTest
pattern
e.g. Prefer taking `pkgs.*` attrs directly as function arguments.
This commit is contained in:
parent
4a508ceee2
commit
036e11665f
7 changed files with 33 additions and 20 deletions
|
@ -1,5 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
linkFarm,
|
||||
runCommandNoCCLocal,
|
||||
mkTestDerivationFromNixvimModule,
|
||||
makeNixvimWithModule,
|
||||
}:
|
||||
|
@ -19,7 +21,7 @@ let
|
|||
let
|
||||
nvim = makeNixvimWithModule { inherit pkgs module; };
|
||||
in
|
||||
pkgs.runCommand "enable-except-in-tests-not-in-test"
|
||||
runCommandNoCCLocal "enable-except-in-tests-not-in-test"
|
||||
{ printConfig = "${nvim}/bin/nixvim-print-init"; }
|
||||
''
|
||||
if ! "$printConfig" | grep 'require("image").setup'; then
|
||||
|
@ -31,7 +33,7 @@ let
|
|||
touch $out
|
||||
'';
|
||||
in
|
||||
pkgs.linkFarm "enable-except-in-tests" [
|
||||
linkFarm "enable-except-in-tests" [
|
||||
{
|
||||
name = "in-test";
|
||||
path = inTest;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue