mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 07:18:27 +01:00
Merge pull request #2231 from efiop/2146
checkout: safe_remove output if no checksum is found
This commit is contained in:
@@ -575,3 +575,9 @@ class TestCheckoutMovedCacheDirWithSymlinks(TestDvc):
|
||||
relpath(old_data_link, old_cache_dir),
|
||||
relpath(new_data_link, new_cache_dir),
|
||||
)
|
||||
|
||||
|
||||
def test_checkout_no_checksum(repo_dir, dvc_repo):
|
||||
stage = dvc_repo.run(outs=[repo_dir.FOO], no_exec=True, cmd="somecmd")
|
||||
dvc_repo.checkout(stage.path, force=True)
|
||||
assert not os.path.exists(repo_dir.FOO)
|
||||
|
||||
Reference in New Issue
Block a user