tests: cleanup tests to better use callTest pattern

e.g. Prefer taking `pkgs.*` attrs directly as function arguments.
This commit is contained in:
Matt Sturgeon 2024-08-28 09:48:10 +01:00
parent 4a508ceee2
commit 036e11665f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
7 changed files with 33 additions and 20 deletions

View file

@ -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;