mirror of
https://github.com/NixOS/nix
synced 2025-06-24 18:01:16 +02:00
Make the repl test more robust
Seen in4390954027
: 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. (cherry picked from commit9eb46e9cc0
)
This commit is contained in:
parent
c6d7a1bb42
commit
37fe2584c1
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,8 @@ foo + baz
|
||||||
# - Re-eval it
|
# - Re-eval it
|
||||||
# - Check that the result has changed
|
# - Check that the result has changed
|
||||||
mkfifo repl_fifo
|
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=$!
|
repl_pid=$!
|
||||||
exec 3>repl_fifo # Open fifo for writing
|
exec 3>repl_fifo # Open fifo for writing
|
||||||
echo "changingThing" >&3
|
echo "changingThing" >&3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue