diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-11-17 13:50:36 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-11-17 13:50:36 +0100 |
commit | bccff827dc968b08bddda03aadcb3d9cc41c2719 (patch) | |
tree | 8bb7702a8970ac9254847ff9493712f62b11d523 /tests/remote-store.sh | |
parent | 5160ceef3080dd2b9e7ac6f58652bf76c1a8a6f4 (diff) |
Fix deadlock in IFD through the daemon
Fixes #4235.
Diffstat (limited to 'tests/remote-store.sh')
-rw-r--r-- | tests/remote-store.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/remote-store.sh b/tests/remote-store.sh index 3a61946f9..f7ae1a2ed 100644 --- a/tests/remote-store.sh +++ b/tests/remote-store.sh @@ -7,6 +7,20 @@ nix --store ssh-ng://localhost?remote-store=$TEST_ROOT/other-store doctor startDaemon +# Test import-from-derivation through the daemon. +[[ $(nix eval --impure --raw --expr ' + with import ./config.nix; + import ( + mkDerivation { + name = "foo"; + bla = import ./dependencies.nix; + buildCommand = " + echo \\\"hi\\\" > $out + "; + } + ) +') = hi ]] + storeCleared=1 NIX_REMOTE_=$NIX_REMOTE $SHELL ./user-envs.sh nix-store --dump-db > $TEST_ROOT/d1 |