Patchwork [2,of,3] test-convert-git: skip tests with invalid path characters on Windows

login
register
mail settings
Submitter Matt Harbison
Date April 16, 2016, 3:52 a.m.
Message ID <ab0ec5c112d7a5ed96fd.1460778733@Envy>
Download mbox | patch
Permalink /patch/14675/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

Matt Harbison - April 16, 2016, 3:52 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1460774272 14400
#      Fri Apr 15 22:37:52 2016 -0400
# Node ID ab0ec5c112d7a5ed96fd7d2a3a767147f1ccf671
# Parent  1459063eacbfe221976eea7fdd17854e27a8fa98
test-convert-git: skip tests with invalid path characters on Windows

Patch

diff --git a/tests/test-convert-git.t b/tests/test-convert-git.t
--- a/tests/test-convert-git.t
+++ b/tests/test-convert-git.t
@@ -730,6 +730,8 @@ 
   $ hg convert git-repo4 git-repo4-broken-hg 2>&1 | grep 'abort:'
   abort: cannot read changes in 1c0ce3c5886f83a1d78a7b517cdff5cf9ca17bdd
 
+#if no-windows
+
 test for escaping the repo name (CVE-2016-3069)
 
   $ git init '`echo pwned >COMMAND-INJECTION`'
@@ -746,3 +748,6 @@ 
   updating bookmarks
   $ test -f COMMAND-INJECTION
   [1]
+
+#endif
+