Skip to content

Commit

Permalink
stage: rename .dvc/cache/stages -> .dvc/cache/run
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed May 3, 2020
1 parent c873787 commit c3731c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dvc/stage/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions tests/func/test_repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,9 +1295,7 @@ def test(self):
["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):
Expand Down

0 comments on commit c3731c1

Please sign in to comment.