Skip to content

Commit

Permalink
test: ls/dir depends on platform, dir is not supported by Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein committed Jun 23, 2019
1 parent 6f05e77 commit 478d6ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/func/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,9 @@ def test(self):
self.assertEqual(ret, 0)
self.assertEqual(file_md5_counter.mock.call_count, 3)

ls = "dir" if os.name == "nt" else "ls"
ret = main(
["run", "-d", self.DATA_DIR, "dir {}".format(self.DATA_DIR)]
["run", "-d", self.DATA_DIR, "{} {}".format(ls, self.DATA_DIR)]
)
self.assertEqual(ret, 0)
self.assertEqual(file_md5_counter.mock.call_count, 3)
Expand Down

0 comments on commit 478d6ae

Please sign in to comment.