2021-07-20 06:57:56 +02:00
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
# Ensure that we can’t build twice the same derivation concurrently.
|
|
|
|
|
# Regression test for https://github.com/NixOS/nix/issues/5029
|
|
|
|
|
|
|
|
|
|
source common.sh
|
|
|
|
|
|
2021-07-26 06:54:55 +02:00
|
|
|
|
buggyNeedLocalStore "For some reason, this deadlocks with the daemon"
|
2021-07-20 06:57:56 +02:00
|
|
|
|
|
|
|
|
|
export NIX_TESTS_CA_BY_DEFAULT=1
|
|
|
|
|
|
|
|
|
|
clearStore
|
|
|
|
|
|
|
|
|
|
for i in {0..5}; do
|
|
|
|
|
nix build --no-link --file ./racy.nix &
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
wait
|