Merge fort-nix/nix-bitcoin#806: run-tests: Fix tmpDir being deleted before it's used

6bc5747951 run-tests: fix `tmpDir` being deleted before it's used (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK 6bc5747951

Tree-SHA512: 7767634bc098faac5cfeb14d1800f24df89a1ea5d56fe894338ae2d2871c3293a8bafc62ee61b5cb7f9f658b02c2a52bc7f82b86f69d20d1dae86cc6bfe004b3
This commit is contained in:
Jonas Nick 2025-08-19 07:22:47 +00:00
commit 21442ea33f
No known key found for this signature in database
GPG key ID: 4861DBF262123605

View file

@ -190,6 +190,7 @@ buildTestAttr() {
buildTests() {
local -n tests=$1
shift
makeTmpDir
# TODO-EXTERNAL:
# Simplify and switch to pure build when `nix build` can instantiate flake function outputs
# shellcheck disable=SC2207