From 61ea9e9867ad426eee064242963299553b8db9f3 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 12 Jul 2017 17:10:14 -0400 Subject: [PATCH] Run nix-build inside a fresh bash login --- tests/install-darwin.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/install-darwin.sh b/tests/install-darwin.sh index 30a3cc3d3..4a6ab7d64 100755 --- a/tests/install-darwin.sh +++ b/tests/install-darwin.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -eux + cleanup() { PLIST="/Library/LaunchDaemons/org.nixos.nix-daemon.plist" if sudo launchctl list | grep -q nix-daemon; then @@ -47,7 +49,10 @@ verify ( - nix-build ./release.nix -A binaryTarball.x86_64-darwin + ( + echo "cd $(pwd)" + echo nix-build ./release.nix -A binaryTarball.x86_64-darwin + ) | bash -l cp ./result/nix-*.tar.bz2 $scratch/nix.tar.bz2 )