From 2a847ef25c44635fe3c6ea7485028296afdb7a7b Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Mon, 9 Sep 2019 11:20:29 -0500 Subject: [PATCH] tests: ignore ssh's hardlink and copy tests on windows --- tests/unit/remote/ssh/test_connection.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unit/remote/ssh/test_connection.py b/tests/unit/remote/ssh/test_connection.py index dd89864fb..f0c12ec21 100644 --- a/tests/unit/remote/ssh/test_connection.py +++ b/tests/unit/remote/ssh/test_connection.py @@ -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")