Patchwork [1,of,2] tests: also skip remotefilelog *.py tests on Windows

login
register
mail settings
Submitter Matt Harbison
Date Nov. 28, 2018, 3:46 a.m.
Message ID <c743bb1c19513a61925c.1543376799@Envy>
Download mbox | patch
Permalink /patch/36821/
State Accepted
Headers show

Comments

Matt Harbison - Nov. 28, 2018, 3:46 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1543375392 18000
#      Tue Nov 27 22:23:12 2018 -0500
# Node ID c743bb1c19513a61925ce4663d33323aea7016cc
# Parent  df8ed31a8ad8ae116e31550d9128055ece22e258
tests: also skip remotefilelog *.py tests on Windows

This should have gone with 0800d9e6e216.
Yuya Nishihara - Nov. 28, 2018, 11:32 a.m.
On Tue, 27 Nov 2018 22:46:39 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1543375392 18000
> #      Tue Nov 27 22:23:12 2018 -0500
> # Node ID c743bb1c19513a61925ce4663d33323aea7016cc
> # Parent  df8ed31a8ad8ae116e31550d9128055ece22e258
> tests: also skip remotefilelog *.py tests on Windows

Queued, thanks.

Patch

diff --git a/tests/test-remotefilelog-datapack.py b/tests/test-remotefilelog-datapack.py
--- a/tests/test-remotefilelog-datapack.py
+++ b/tests/test-remotefilelog-datapack.py
@@ -18,6 +18,7 @@  import silenttestrunner
 sys.path[0:0] = [os.path.join(os.path.dirname(__file__), '..')]
 from mercurial.node import nullid
 from mercurial import (
+    pycompat,
     ui as uimod,
 )
 from hgext.remotefilelog import (
@@ -372,4 +373,6 @@  class datapacktests(datapacktestsbase, u
 # - GC two packs into one
 
 if __name__ == '__main__':
+    if pycompat.iswindows:
+        sys.exit(80)    # Skip on Windows
     silenttestrunner.main(__name__)
diff --git a/tests/test-remotefilelog-histpack.py b/tests/test-remotefilelog-histpack.py
--- a/tests/test-remotefilelog-histpack.py
+++ b/tests/test-remotefilelog-histpack.py
@@ -273,4 +273,6 @@  class histpacktests(unittest.TestCase):
 # - repack two packs into one
 
 if __name__ == '__main__':
+    if pycompat.iswindows:
+        sys.exit(80)    # Skip on Windows
     silenttestrunner.main(__name__)