aboutsummaryrefslogtreecommitdiff
path: root/tests/post-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/post-hook.sh')
-rw-r--r--tests/post-hook.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/post-hook.sh b/tests/post-hook.sh
index 8b7838058..c974ea1b0 100644
--- a/tests/post-hook.sh
+++ b/tests/post-hook.sh
@@ -18,7 +18,8 @@ fi
# Build the dependencies and push them to the remote store.
nix-build -o $TEST_ROOT/result dependencies.nix --post-build-hook "$pushToStore"
# See if all outputs are passed to the post-build hook by only specifying one
-export BUILD_HOOK_ONLY_OUT_PATHS=1
+# TODO: BUILD_HOOK_ONLY_OUT_PATHS does not work with CA tests
+export BUILD_HOOK_ONLY_OUT_PATHS=$([ ! $NIX_TESTS_CA_BY_DEFAULT ])
nix-build -o $TEST_ROOT/result-mult multiple-outputs.nix -A a.first --post-build-hook "$pushToStore"
clearStore