mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
* Argh, stupid timing sensitive tests...
This commit is contained in:
parent
e23a7a8b7b
commit
38f98b3282
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
source common.sh
|
source common.sh
|
||||||
|
|
||||||
$NIX_BIN_DIR/nix-collect-garbage
|
clearStore
|
||||||
|
|
||||||
drvPath1=$($nixinstantiate gc-concurrent.nix -A test1)
|
drvPath1=$($nixinstantiate gc-concurrent.nix -A test1)
|
||||||
outPath1=$($nixstore -q $drvPath1)
|
outPath1=$($nixstore -q $drvPath1)
|
||||||
|
@ -22,12 +22,12 @@ ln -s $outPath3 "$NIX_STATE_DIR"/gcroots/foo2
|
||||||
$nixstore -rvv "$drvPath1" &
|
$nixstore -rvv "$drvPath1" &
|
||||||
pid1=$!
|
pid1=$!
|
||||||
|
|
||||||
# Start build #2 in the background after 6 seconds.
|
# Start build #2 in the background after 10 seconds.
|
||||||
(sleep 6 && $nixstore -rvv "$drvPath2") &
|
(sleep 10 && $nixstore -rvv "$drvPath2") &
|
||||||
pid2=$!
|
pid2=$!
|
||||||
|
|
||||||
# Run the garbage collector while the build is running.
|
# Run the garbage collector while the build is running.
|
||||||
sleep 4
|
sleep 6
|
||||||
$NIX_BIN_DIR/nix-collect-garbage
|
$NIX_BIN_DIR/nix-collect-garbage
|
||||||
|
|
||||||
# Wait for build #1/#2 to finish.
|
# Wait for build #1/#2 to finish.
|
||||||
|
|
Loading…
Reference in a new issue