[PATCH 1 of 2] test-install: perform the wix checking on wdir() instead of

Matt Harbison mharbison72 at gmail.com
Fri Dec 18 02:26:26 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1450405082 18000
#      Thu Dec 17 21:18:02 2015 -0500
# Node ID c63a117963ebcbada5e359cdc60ad5112d0a14cd
# Parent  2916ebaef3129451bfd4f9f62487e70f74124d46
test-install: perform the wix checking on wdir() instead of .

This allows catching problems before they are committed.

diff --git a/tests/test-install.t b/tests/test-install.t
--- a/tests/test-install.t
+++ b/tests/test-install.t
@@ -42,6 +42,7 @@
   checking username...
   no problems detected
 
+#if test-repo
   $ cat >> wixxml.py << EOF
   > import os, subprocess, sys
   > import xml.etree.ElementTree as ET
@@ -66,7 +67,7 @@
   > def hgdirectory(relpath):
   >     '''generator of tracked files, rooted at relpath'''
   >     hgdir = "%s/../mercurial" % (testdir)
-  >     args = ['hg', '--cwd', hgdir, 'files', '--rev', '.', relpath]
+  >     args = ['hg', '--cwd', hgdir, 'files', relpath]
   >     proc = subprocess.Popen(args, stdout=subprocess.PIPE,
   >                             stderr=subprocess.PIPE)
   >     output = proc.communicate()[0]
@@ -108,3 +109,5 @@
   $ python wixxml.py templates
   Not installed:
   Not tracked:
+
+#endif


More information about the Mercurial-devel mailing list