mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
tests/generated: use runCommandNoCCLocal
and structuedAttrs
The former makes the test derivation _slightly_ smaller, the latter makes the `$errors` stdenv variable slightly more robust.
This commit is contained in:
parent
9f4c9ea7e4
commit
0f83298f2c
1 changed files with 13 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
runCommand,
|
||||
runCommandNoCCLocal,
|
||||
pkgs,
|
||||
}:
|
||||
let
|
||||
|
@ -81,10 +81,15 @@ let
|
|||
)
|
||||
);
|
||||
in
|
||||
runCommand "generated-sources-test" { inherit errors; } ''
|
||||
if [ -n "$errors" ]; then
|
||||
echo -n "$errors"
|
||||
exit 1
|
||||
fi
|
||||
touch "$out"
|
||||
''
|
||||
runCommandNoCCLocal "generated-sources-test"
|
||||
{
|
||||
__structuredAttrs = true;
|
||||
inherit errors;
|
||||
}
|
||||
''
|
||||
if [ -n "$errors" ]; then
|
||||
echo -n "$errors"
|
||||
exit 1
|
||||
fi
|
||||
touch "$out"
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue