mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +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,
|
lib,
|
||||||
runCommand,
|
runCommandNoCCLocal,
|
||||||
pkgs,
|
pkgs,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -81,10 +81,15 @@ let
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
runCommand "generated-sources-test" { inherit errors; } ''
|
runCommandNoCCLocal "generated-sources-test"
|
||||||
if [ -n "$errors" ]; then
|
{
|
||||||
echo -n "$errors"
|
__structuredAttrs = true;
|
||||||
exit 1
|
inherit errors;
|
||||||
fi
|
}
|
||||||
touch "$out"
|
''
|
||||||
''
|
if [ -n "$errors" ]; then
|
||||||
|
echo -n "$errors"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
touch "$out"
|
||||||
|
''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue