On 3/22/10 11:54 PM, Pepe Barbe wrote:
> I am building the new package for Mercurial 1.5 and I am having some
> issues and I would appreciate some help testing.
>
> It seems when doing a test build under the fink, for some reason
> during the Test Phase things get botched and a lot of tests fail.
>
> I spoke with upstream and, at least, under Snow Leopard no test
> failures are expected. I have tested mercurial with the native Python
> and indeed there are no problems. Building and testing manually with
> Fink's Python also returned few to no issues.
>
> I think the problem is related to whatever shell settings and
> permissions are present when the TestPhase is executed.

It's a permissions issue.

All the following examples are with Fink's mercurial-py26-1.5-1 
installed and using this command: /sw/bin/python run-tests.py 
--with-hg=/sw/bin/hg -v


Running the tests as an admin $USER from a clean source extract in 
/src/mercurial-1.5:
# Ran 368 tests, 34 skipped, 0 failed.


Running the the tests in a clean source extract in /src/mercurial-1.5 as 
root by prefixing the above command with sudo:
# Running "/src/mercurial-1.5/tests/test-backwards-remove"
# Ret was: 0

ERROR: /src/mercurial-1.5/tests/test-backwards-remove output changed
--- /src/mercurial-1.5/tests/test-backwards-remove.out
+++ /src/mercurial-1.5/tests/test-backwards-remove.err
@@ -1,3 +1,5 @@
+.hg
  a
  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+.hg
  a
...
other failures like this one
...
# Ran 368 tests, 34 skipped, 14 failed.


Running the test as an admin $USER in %b/tests that's leftover from 
'fink -m -Kk install mercurial-py26':
# Test test-backwards-remove
# Cleaning up HGTMP 
/private/var/folders/VJ/VJI1GqIRGmOqqRYrL1IClU+++TI/-Tmp-/hgtests.soCjpV
Traceback (most recent call last):
   File "run-tests.py", line 948, in <module>
     main()
   File "run-tests.py", line 943, in main
     runtests(options, tests)
   File "run-tests.py", line 791, in runtests
     ret = runone(options, test, skips, fails)
   File "run-tests.py", line 529, in runone
     os.remove(err)       # Remove any previous output files
OSError: [Errno 13] Permission denied: 
'/sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove.err'


Running the tests in %b/tests as root by prefixing the tests command 
with sudo (run from an admin $USER):
# Test test-backwards-remove
# Running 
"/sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove"
# Ret was: 0

ERROR: 
/sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove
 
output changed
--- 
/sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove.out
 

+++ 
/sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove.err
 

@@ -1,3 +1,5 @@
+.hg
  a
  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+.hg
  a
...
(other failures with same result: "output changed")
...
# Ran 368 tests, 34 skipped, 14 failed.


Hanspeter

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to