diff options
author | Graham Christensen <graham@grahamc.com> | 2017-07-12T21·10-0400 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2017-07-14T16·11-0400 |
commit | 61ea9e9867ad426eee064242963299553b8db9f3 (patch) | |
tree | e2986c537713af4e54b358489edc2cc90e2d8254 /tests | |
parent | bc647fd2991deffcc1ab400912e641ac4e4d016f (diff) |
Run nix-build inside a fresh bash login
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/install-darwin.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/install-darwin.sh b/tests/install-darwin.sh index 30a3cc3d36b1..4a6ab7d6471a 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 ) |