mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
* 1000th revision!
* A test to verify that locking of output paths (caused by concurrent invocations of Nix) works correctly.
This commit is contained in:
parent
a7bbe73971
commit
f044ccf702
4 changed files with 50 additions and 2 deletions
9
tests/locking.builder.sh
Normal file
9
tests/locking.builder.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
export PATH=/bin:/usr/bin:$PATH
|
||||
|
||||
sleep 3
|
||||
|
||||
touch $out
|
||||
# Use `>>'; without proper locking this will cause text duplication.
|
||||
echo -n $(cat $inputs)$text >> $out
|
||||
|
||||
sleep 2
|
Loading…
Add table
Add a link
Reference in a new issue