From c183ee5c79dd356262c3d7c31e3aace09045671f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Mar 2009 14:48:42 +0000 Subject: * 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. --- tests/dependencies.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/dependencies.sh') diff --git a/tests/dependencies.sh b/tests/dependencies.sh index 440b6fae0c68..46f60c9bd334 100644 --- a/tests/dependencies.sh +++ b/tests/dependencies.sh @@ -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 -- cgit 1.4.1