mirror of
https://github.com/NixOS/nix.git
synced 2025-02-21 11:22:35 +00:00
Test that nix-store --restore fails if the output already exists
This restores the behaviour from before the std::filesystem
refactorings.
(cherry picked from commit da1ad28912
)
This commit is contained in:
parent
f9b3defe7f
commit
7358d217cf
@ -8,6 +8,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…
Reference in New Issue
Block a user