fix one more test on windows

This commit is contained in:
Ivan Shcheklein
2019-02-09 20:04:35 -08:00
parent bd28b711f9
commit 8817864e7a
+2 -2
View File
@@ -532,12 +532,12 @@ class TestCmdRunOverwrite(TestDvc):
class TestCmdRunCliMetrics(TestDvc):
def test_cached(self):
ret = main(["run", "-m", "metrics.txt", "echo 'test' > metrics.txt"])
ret = main(["run", "-m", "metrics.txt", "echo test > metrics.txt"])
self.assertEqual(ret, 0)
self.assertEqual(open("metrics.txt", "r").read().rstrip(), "test")
def test_not_cached(self):
ret = main(["run", "-M", "metrics.txt", "echo 'test' > metrics.txt"])
ret = main(["run", "-M", "metrics.txt", "echo test > metrics.txt"])
self.assertEqual(ret, 0)
self.assertEqual(open("metrics.txt", "r").read().rstrip(), "test")