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

Re: t9010 broken in pu [Re: What's cooking in git.git (Dec 2010, #01; Sat, 4)]

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 8, 2010, 11:28 UTC
Message-ID
<20101208112836.GA5285@burratino>
In-Reply-To
<201012081223.47642.trast@student.ethz.ch>
Thomas Rast wrote:
> If I'm reading the test report right, the merge conflict in
> t/t9010-svn-fe.sh broke tests.  It bisects to 5ea8b68 (Merge branch
> 'jn/svn-fe' into pu, 2010-12-07), failing with
[...]
> A quick reading of the merge suggests that you concatenated with an
> earlier test that goes
> 
>   test_dump () {
[...]
> hence creating simple-svn, too.  So a rename or rm -rf should suffice.

Thanks for the analysis. Even better would be to remove the redundant definition and invocation of test_dump, like this (imitating b3e5bce, vcs-svn: Error out for v3 dumps, 2010-11-17): ---

diff --git a/t/t9010-svn-fe.sh b/t/t9010-svn-fe.sh
index 6e3b6ad..d207aeb 100755
--- a/t/t9010-svn-fe.sh
+++ b/t/t9010-svn-fe.sh
@@ -14,31 +14,6 @@ svn_cmd () {
 	svn "$subcommand" --config-dir "$svnconf" "$@"
 }
 
-test_dump () {
-	label=$1
-	dump=$2
-	test_expect_success "$dump" '
-		svnadmin create "$label-svn" &&
-		svnadmin load "$label-svn" < "$TEST_DIRECTORY/$dump" &&
-		svn_cmd export "file://$PWD/$label-svn" "$label-svnco" &&
-		git init "$label-git" &&
-		test-svn-fe "$TEST_DIRECTORY/$dump" >"$label.fe" &&
-		(
-			cd "$label-git" &&
-			git fast-import < ../"$label.fe"
-		) &&
-		(
-			cd "$label-svnco" &&
-			git init &&
-			git add . &&
-			git fetch "../$label-git" master &&
-			git diff --exit-code FETCH_HEAD
-		)
-	'
-}
-
-test_dump simple t9135/svn.dump
-
 reinit_git () {
 	rm -fr .git &&
 	git init
Previous: Thomas Rast
Message 27 of 27 in “What's cooking in git.git (Dec 2010, #01; Sat, 4)”
  1. Junio C HamanoDec 5, 2010
  2. Jeff KingDec 5, 2010
  3. Junio C HamanoDec 5, 2010
  4. aleksi.aalto@iki.fiDec 6, 2010
  5. Jeff KingDec 9, 2010
  6. Junio C HamanoDec 10, 2010
  7. Yann DirsonDec 5, 2010
  8. Junio C HamanoDec 5, 2010
  9. Yann DirsonDec 6, 2010
  10. Miles BaderDec 6, 2010
  11. Yann DirsonDec 6, 2010
  12. Miles BaderDec 6, 2010
  13. Yann DirsonDec 6, 2010
  14. Miles BaderDec 6, 2010
  15. Yann DirsonDec 6, 2010
  16. Matthieu MoyDec 6, 2010
  17. Junio C HamanoDec 10, 2010
  18. aleksi.aalto@iki.fiDec 5, 2010
  19. Patrick RouleauDec 5, 2010
  20. Erik Faye-LundDec 5, 2010
  21. Junio C HamanoDec 5, 2010
  22. Michael J GruberDec 5, 2010
  23. Junio C HamanoDec 5, 2010
  24. Michael J GruberDec 6, 2010
  25. Thiago FarinaDec 6, 2010
  26. t9010 broken in pu [Re: What's cooking in git.git (Dec 2010, #01; Sat, 4)]Thomas Rast, Dec 8, 2010
  27. Jonathan NiederDec 8, 2010

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.