dvc: use two-level hash for cache

Fixes #488

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-03-02 02:51:20 +02:00
parent f96f1f7ee3
commit 539ac41b70
10 changed files with 40 additions and 27 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ class TestDataCloudGCP(TestDataCloudBase):
# Setup cloud
config = {'StoragePath': repo,
'Region': self.TEST_REPO_GCP_PROJECT}
cloud_settings = CloudSettings(self.dvc.cache.cache_dir, None, config)
cloud_settings = CloudSettings(self.dvc.cache, None, config)
self.cloud = DataCloudGCP(cloud_settings)
def test(self):
@@ -172,7 +172,7 @@ class TestDataCloudLOCAL(TestDataCloudBase):
self.dname = 'cloud'
os.mkdir(self.dname)
config = {'StoragePath': self.dname}
cloud_settings = CloudSettings(self.dvc.cache.cache_dir, None, config)
cloud_settings = CloudSettings(self.dvc.cache, None, config)
self.cloud = DataCloudLOCAL(cloud_settings)
def test(self):