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

login
register
mail settings
Submitter Matt Harbison
Date Dec. 18, 2015, 2:26 a.m.
Message ID <c63a117963ebcbada5e3.1450405586@Envy>
Download mbox | patch
Permalink /patch/12136/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

Matt Harbison - Dec. 18, 2015, 2:26 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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.

Patch

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