tests: ignore ssh's hardlink and copy tests on windows

This commit is contained in:
Mr. Outis
2019-09-09 11:20:29 -05:00
parent e0fd808ab0
commit 2a847ef25c
+8
View File
@@ -95,11 +95,19 @@ def test_symlink(repo_dir, ssh):
assert System.is_symlink("link")
@pytest.mark.skipif(
platform.system() == "Windows",
reason="hardlink is temporarily not supported on Windows",
)
def test_hardlink(repo_dir, ssh):
ssh.hardlink("foo", "link")
assert System.is_hardlink("link")
@pytest.mark.skipif(
platform.system() == "Windows",
reason="copy is temporarily not supported on Windows",
)
def test_copy(repo_dir, ssh):
ssh.copy("foo", "link")
assert filecmp.cmp("foo", "link")