mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Test that nix-store --restore fails if the output already exists
This restores the behaviour from before the std::filesystem refactorings.
This commit is contained in:
parent
83d5b32803
commit
da1ad28912
2 changed files with 5 additions and 1 deletions
|
@ -10,6 +10,9 @@ clearStore
|
|||
rm -rf "$TEST_ROOT/out"
|
||||
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < duplicate.nar | grepQuiet "NAR directory is not sorted"
|
||||
|
||||
# Check that nix-store --restore fails if the output already exists.
|
||||
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < duplicate.nar | grepQuiet "path '.*/out/' already exists"
|
||||
|
||||
# Check whether restoring and dumping a NAR that contains case
|
||||
# collisions is round-tripping, even on a case-insensitive system.
|
||||
rm -rf "$TEST_ROOT/case"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue