remote: properly collect dir cache

Fixes #1293

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-11-06 14:19:38 +02:00
parent 7398a174a8
commit f00d08d46d
5 changed files with 121 additions and 68 deletions
+10
View File
@@ -414,6 +414,16 @@ class TestDataCloudCLIBase(TestDvc):
self.main(['status', '-c', '--show-checksums'] + args)
# NOTE: check if remote gc works correctly on directories
self.main(['gc', '-c', '-f'] + args)
shutil.rmtree(self.dvc.cache.local.cache_dir)
self.main(['pull'] + args)
self.assertTrue(os.path.exists(cache))
self.assertTrue(os.path.isfile(cache))
self.assertTrue(os.path.isfile(cache_dir))
self.assertTrue(os.path.isfile(self.FOO))
self.assertTrue(os.path.isdir(self.DATA_DIR))
def _should_test(self):
return True