mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Make the repl test more robust
Seen in 4390954027
:
nix-functional-tests> grep: repl_output: No such file or directory
nix-functional-tests> +(repl.sh:174) cat repl_output
This is because there is a small possibility that the `nix repl` child
process hasn't created `repl_output` yet. So make sure it exists.
This commit is contained in:
parent
b3c1b70c19
commit
9eb46e9cc0
1 changed files with 2 additions and 1 deletions
|
@ -189,7 +189,8 @@ testReplResponseNoRegex $'
|
|||
# - Re-eval it
|
||||
# - Check that the result has changed
|
||||
mkfifo repl_fifo
|
||||
nix repl ./flake --experimental-features 'flakes' < repl_fifo > repl_output 2>&1 &
|
||||
touch repl_output
|
||||
nix repl ./flake --experimental-features 'flakes' < repl_fifo >> repl_output 2>&1 &
|
||||
repl_pid=$!
|
||||
exec 3>repl_fifo # Open fifo for writing
|
||||
echo "changingThing" >&3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue