test: repro: add test for failed stage in CLI

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-19 08:36:32 +03:00
parent 3be898797a
commit e598b0b4c7
+8
View File
@@ -40,6 +40,14 @@ class TestRepro(TestDvc):
cmd='python {} {} {}'.format(self.CODE, self.FOO, self.file1))
class TestReproFail(TestRepro):
def test(self):
os.unlink(self.CODE)
ret = main(['repro', self.file1_stage])
self.assertNotEqual(ret, 0)
class TestReproDepUnderDir(TestDvc):
def test(self):
self.dir_stage = self.dvc.add(self.DATA_DIR)