Skip to content

Commit

Permalink
tests.overriding: simplify implementation with lib.concatMapStringAtt…
Browse files Browse the repository at this point in the history
…rsSep
  • Loading branch information
ShamrockLee committed Dec 6, 2024
1 parent 037a7cb commit 226b370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/test/overriding.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ stdenvNoCC.mkDerivation {
passthru = { inherit tests; };
buildCommand = ''
touch $out
'' + lib.concatStringsSep "\n" (lib.attrValues (lib.mapAttrs (name: t: "([[ ${lib.boolToString t.expr} == ${lib.boolToString t.expected} ]] && echo '${name} success') || (echo '${name} fail' && exit 1)") tests));
'' + lib.concatMapAttrsStringSep "\n" (name: t: "([[ ${lib.boolToString t.expr} == ${lib.boolToString t.expected} ]] && echo '${name} success') || (echo '${name} fail' && exit 1)") tests;
}

0 comments on commit 226b370

Please sign in to comment.