mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
output: set remove to recursive=false (#9574)
* output: set remove to recursive=false * try to make test pass on windows * Update dvc/output.py --------- Co-authored-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
co-authored by
Ruslan Kuprieiev
parent
621fe07a3b
commit
f28d5ee9e0
@@ -1273,3 +1273,12 @@ def test_repro_missing_lock_info(tmp_dir, dvc, copy_script):
|
||||
|
||||
stages = dvc.reproduce(stage.addressing)
|
||||
assert len(stages) == 1
|
||||
|
||||
|
||||
def test_repro_rm_recursive(tmp_dir, dvc):
|
||||
# check that dir output recursively removes files in the dir
|
||||
tmp_dir.gen({"dir": {"foo": "foo"}})
|
||||
dvc.stage.add(name="dir", cmd="mkdir dir", outs=["dir"])
|
||||
dvc.reproduce()
|
||||
assert (tmp_dir / "dir").exists()
|
||||
assert not (tmp_dir / "dir" / "foo").exists()
|
||||
|
||||
Reference in New Issue
Block a user