stage: rename .dvc/cache/stages -> .dvc/cache/run (#3724)

This commit is contained in:
Ruslan Kuprieiev
2020-05-03 17:19:37 +03:00
committed by GitHub
parent c873787d73
commit 3e1eb6d1e7
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ def _get_stage_hash(stage):
class StageCache:
def __init__(self, cache_dir):
self.cache_dir = os.path.join(cache_dir, "stages")
self.cache_dir = os.path.join(cache_dir, "run")
def _get_cache_dir(self, key):
return os.path.join(self.cache_dir, key[:2], key)
+1 -3
View File
@@ -1295,9 +1295,7 @@ class TestReproNoCommit(TestRepro):
["repro", self._get_stage_target(self.stage), "--no-commit"]
)
self.assertEqual(ret, 0)
self.assertEqual(
os.listdir(self.dvc.cache.local.cache_dir), ["stages"]
)
self.assertEqual(os.listdir(self.dvc.cache.local.cache_dir), ["run"])
class TestReproAlreadyCached(TestRepro):