tests.concat: added empty case

main
Pasquale 2 years ago
parent 5187d2cd8f
commit 86e2880d11
No known key found for this signature in database
GPG Key ID: 13160FFB4CEB03F2
  1. 3
      pkgs/build-support/trivial-builders/test/concat-test.nix

@ -1,4 +1,4 @@
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello }:
{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello, emptyFile }:
let
stri = writeText "pathToTest";
txt1 = stri "abc";
@ -7,5 +7,6 @@ let
in
runCommand "test-concatPaths" { } ''
diff -U3 <(cat ${txt1} ${txt2}) ${res}
diff -U3 ${concatText "void" []} ${emptyFile}
touch $out
''

Loading…
Cancel
Save