about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-07-12T21·10-0400
committerGraham Christensen <graham@grahamc.com>2017-07-14T16·11-0400
commit61ea9e9867ad426eee064242963299553b8db9f3 (patch)
treee2986c537713af4e54b358489edc2cc90e2d8254 /tests
parentbc647fd2991deffcc1ab400912e641ac4e4d016f (diff)
Run nix-build inside a fresh bash login
Diffstat (limited to 'tests')
-rwxr-xr-xtests/install-darwin.sh7
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
 )