Merge with stable
authorChristian Ebert <blacktrash@gmx.net>
Sat, 09 Oct 2010 12:26:56 +0100
changeset 825 908e4fe6c177
parent 819 8f2c2cc51789 (current diff)
parent 824 6d3f8caef3b3 (diff)
child 832 1f1db3dc9ddf
Merge with stable
--- a/tests/run-tests.py	Sat Oct 09 11:35:31 2010 +0100
+++ b/tests/run-tests.py	Sat Oct 09 12:26:56 2010 +0100
@@ -362,10 +362,11 @@
         # when they happen.
         nohome = ''
     cmd = ('%s setup.py %s clean --all'
+           ' build --build-base="%s"'
            ' install --force --prefix="%s" --install-lib="%s"'
            ' --install-scripts="%s" %s >%s 2>&1'
-           % (sys.executable, pure, INST, PYTHONDIR, BINDIR, nohome,
-              installerrs))
+           % (sys.executable, pure, os.path.join(HGTMP, "build"),
+              INST, PYTHONDIR, BINDIR, nohome, installerrs))
     vlog("# Running", cmd)
     if os.system(cmd) == 0:
         if not options.verbose:
@@ -486,6 +487,8 @@
             # non-command/result - queue up for merged output
             after.setdefault(pos, []).append(l)
 
+    if script and not script[-1].endswith('\n'):
+        script[-1] = script[-1] + '\n'
     script.append('echo %s %s $?\n' % (salt, n + 1))
 
     fd, name = tempfile.mkstemp(suffix='hg-tst')
@@ -498,6 +501,9 @@
         cmd = '/bin/sh "%s"' % name
         vlog("# Running", cmd)
         exitcode, output = run(cmd, options)
+        # do not merge output if skipped, return hghave message instead
+        if exitcode == SKIPPED_STATUS:
+            return exitcode, output
     finally:
         os.remove(name)
 
--- a/tests/test-keyword.t	Sat Oct 09 11:35:31 2010 +0100
+++ b/tests/test-keyword.t	Sat Oct 09 12:26:56 2010 +0100
@@ -535,7 +535,7 @@
 
   $ cp sym i
   $ ls -l i
-  -rw-r--r--  * (glob)
+  -rw-r--r-- * (glob)
   $ head -1 i
   expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
   $ hg copy --after --verbose sym i