mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
* Acquire the locks on the output paths before trying to run the build
hook. This fixes a problem with log files being partially or completely filled with 0's because another nix-store process truncates the log file. It should also be more efficient.
This commit is contained in:
parent
1dcf208f56
commit
c183ee5c79
4 changed files with 78 additions and 150 deletions
|
@ -1,5 +1,7 @@
|
|||
source common.sh
|
||||
|
||||
clearStore
|
||||
|
||||
drvPath=$($nixinstantiate dependencies.nix)
|
||||
|
||||
echo "derivation is $drvPath"
|
||||
|
@ -13,7 +15,7 @@ if test -n "$dot"; then
|
|||
$dot < $TEST_ROOT/graph
|
||||
fi
|
||||
|
||||
outPath=$($nixstore -rvv "$drvPath")
|
||||
outPath=$($nixstore -rvv "$drvPath") || fail "build failed"
|
||||
|
||||
# Test Graphviz graph generation.
|
||||
$nixstore -q --graph "$outPath" > $TEST_ROOT/graph
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue