tests: protect tests involving git ext::sh with git-ext-sh
authorSean Farley <sean@farley.io>
Thu, 15 Jun 2017 17:14:53 -0700
changeset 32902 642feee29d70
parent 32901 559db66dead5
child 32903 27932a76a88d
tests: protect tests involving git ext::sh with git-ext-sh
tests/test-convert-git.t
tests/test-subrepo-git.t
--- a/tests/test-convert-git.t	Thu Jun 15 17:13:23 2017 -0700
+++ b/tests/test-convert-git.t	Thu Jun 15 17:14:53 2017 -0700
@@ -948,7 +948,7 @@
   $ hg convert git-repo4 git-repo4-broken-hg 2>&1 | grep 'abort:'
   abort: cannot read changes in 1c0ce3c5886f83a1d78a7b517cdff5cf9ca17bdd
 
-#if no-windows
+#if no-windows git19
 
 test for escaping the repo name (CVE-2016-3069)
 
--- a/tests/test-subrepo-git.t	Thu Jun 15 17:13:23 2017 -0700
+++ b/tests/test-subrepo-git.t	Thu Jun 15 17:14:53 2017 -0700
@@ -1137,6 +1137,8 @@
   ? s/foobar.orig
   ? s/snake.python.orig
 
+#if git19
+
 test for Git CVE-2016-3068
   $ hg init malicious-subrepository
   $ cd malicious-subrepository
@@ -1178,3 +1180,5 @@
   [255]
   $ f -Dq pwned.txt
   pwned: you asked for it
+
+#endif