git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Test failures with python versions when building git 1.8.1

From
DMDan McGee <dan@archlinux.org>
Date
Jan 2, 2013, 04:12 UTC
Message-ID
<CAEik5nOqge8ix4WGf-h+0Dmz1CanH_XtQdB-CxvPsggSu1-LzQ@mail.gmail.com>

A test case snuck in this release that assumes /usr/bin/python is python2 and causes test failures. Unlike all other tests and code depending on python, this one does not respect PYTHON_PATH, which we explicitly set when building git on Arch Linux due to python2 vs python3 differences.

-Dan

make[1]: Entering directory `/build/src/git-1.8.1/t' rm -f -r test-results *** prove ***

Test Summary Report
-------------------
t9020-remote-svn.sh                              (Wstat: 256 Tests: 6 Failed: 4)
  Failed tests:  1-2, 5-6
  Non-zero exit status: 1
Files=608, Tests=8772, 76 wallclock secs ( 4.07 usr  0.65 sys + 91.83
cusr 37.14 csys = 133.69 CPU)
Result: FAIL
make[1]: *** [prove] Error 1
make[1]: Leaving directory `/build/src/git-1.8.1/t'
make: *** [test] Error 2
$ contrib/svn-fe/svnrdump_sim.py
  File "contrib/svn-fe/svnrdump_sim.py", line 43
    print "usage: %s dump URL -rLOWER:UPPER"
                                           ^
SyntaxError: invalid syntax
diff --git a/contrib/svn-fe/svnrdump_sim.py b/contrib/svn-fe/svnrdump_sim.py
index 1cfac4a..7e6148d 100755
--- a/contrib/svn-fe/svnrdump_sim.py
+++ b/contrib/svn-fe/svnrdump_sim.py
@@ -40,7 +40,7 @@ def writedump(url, lower, upper):

 if __name__ == "__main__":
         if not (len(sys.argv) in (3, 4, 5)):
-                print "usage: %s dump URL -rLOWER:UPPER"
+                print("usage: %s dump URL -rLOWER:UPPER")
                 sys.exit(1)
         if not sys.argv[1] == 'dump': raise NotImplementedError('only
"dump" is suppported.')
         url = sys.argv[2]
Next: Junio C Hamano
Message 1 of 12 in “Test failures with python versions when building git 1.8.1”
  1. Dan McGeeJan 2, 2013
  2. Junio C HamanoJan 2, 2013
  3. Eric S. RaymondJan 2, 2013
  4. Jeff KingJan 2, 2013
  5. Junio C HamanoJan 2, 2013
  6. Jeff KingJan 2, 2013
  7. Joachim SchmitzJan 2, 2013
  8. Dan McGeeJan 2, 2013
  9. Junio C HamanoJan 2, 2013
  10. Dan McGeeJan 2, 2013
  11. Junio C HamanoJan 2, 2013
  12. Jeff KingJan 2, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.