Merge pull request #9637 from 9999years/fix-logging-test-on-macos

Fix `logging.sh` test on macOS

(cherry picked from commit 94a03a810e948f65776c3386d9a5234db551dc9e)
Change-Id: I65dde18ee53ccded31790e0cf1f836c3ad6dc492
This commit is contained in:
eldritch horrors 2024-03-04 07:26:34 +01:00
parent 1d6ae6f9ff
commit 859da103ae

View file

@ -15,7 +15,7 @@ nix-build dependencies.nix --no-out-link --compress-build-log
[ "$(nix-store -l $path)" = FOO ] [ "$(nix-store -l $path)" = FOO ]
# test whether empty logs work fine with `nix log`. # test whether empty logs work fine with `nix log`.
builder="$(mktemp)" builder="$(realpath "$(mktemp)")"
echo -e "#!/bin/sh\nmkdir \$out" > "$builder" echo -e "#!/bin/sh\nmkdir \$out" > "$builder"
outp="$(nix-build -E \ outp="$(nix-build -E \
'with import ./config.nix; mkDerivation { name = "fnord"; builder = '"$builder"'; }' \ 'with import ./config.nix; mkDerivation { name = "fnord"; builder = '"$builder"'; }' \