testing: unrace functional-repl
using sleep(1) as a synchronization mechanism does not work. use fifos instead. fixes #690 and ci constantly falling over in the same exact fucking source line Change-Id: I51725f8e439b6753f3212d2897dbb0620ad77a37
This commit is contained in:
@@ -147,7 +147,9 @@ foo + baz
|
||||
# - Check that the result has changed
|
||||
replResult=$( (
|
||||
echo "changingThing"
|
||||
sleep 1 # Leave the repl the time to eval 'foo'
|
||||
mkfifo fifo
|
||||
echo "builtins.readFile ./fifo"
|
||||
echo > fifo
|
||||
sed -i 's/beforeChange/afterChange/' flake/flake.nix
|
||||
echo ":reload"
|
||||
echo "changingThing"
|
||||
|
||||
Reference in New Issue
Block a user