From ce2281e6d86aa1b461dd27f86b2a71145e85ac8d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 13 Jul 2017 18:01:22 -0400 Subject: [PATCH] Ensure PINCH_ME_IM_SILLY allows a /nix/store to stick around between builds Also output in the status report that the user is very silly --- scripts/install-darwin-multi-user.sh | 8 +++----- tests/install-darwin.sh | 7 ++++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh index 368d9957e..b1d258e0c 100644 --- a/scripts/install-darwin-multi-user.sh +++ b/scripts/install-darwin-multi-user.sh @@ -408,6 +408,9 @@ setup_report() { row " Build Users" "$NIX_USER_COUNT" row " Build Group ID" "$NIX_BUILD_GROUP_ID" row "Build Group Name" "$NIX_BUILD_GROUP_NAME" + if [ "${PINCH_ME_IM_SILLY:-}" != "" ]; then + row " Silliness" "Very Silly" + fi subheader "build users:" @@ -757,11 +760,6 @@ main() { exit 1 fi - if [ "${PINCH_ME_IM_SILLY:-}" != "" ]; then - exit 1 - fi - - create_build_group create_build_users create_directories diff --git a/tests/install-darwin.sh b/tests/install-darwin.sh index b7f874672..3f64944ef 100755 --- a/tests/install-darwin.sh +++ b/tests/install-darwin.sh @@ -80,11 +80,16 @@ verify yes | ./install verify - cleanup echo -n "" | ./install verify + cleanup + sudo mkdir -p /nix/store + sudo touch /nix/store/.silly-hint + echo -n "" | PINCH_ME_IM_SILLY=true ./install + verify + test -e /nix/store/.silly-hint cleanup )