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

[PATCH 07/10] t9100-git-svn-basic: modernize test format

From
John Cai via GitGitGadget <gitgitgadget@gmail.com>
Date
May 20, 2023, 16:13 UTC
Message-ID
<86b3b91d94ec7bb8f296d69ee226cc8bb37c9300.1684599239.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1514.git.git.1684599239.gitgitgadget@gmail.com>
From: John Cai <johncai86@gmail.com>

Some tests still use the old format with four spaces indentation. Standardize the tests to the new format with tab indentation.

Signed-off-by: John Cai <johncai86@gmail.com>
---
 t/t9100-git-svn-basic.sh | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/t/t9100-git-svn-basic.sh b/t/t9100-git-svn-basic.sh
index fea41b3c360..af28b01fefa 100755
--- a/t/t9100-git-svn-basic.sh
+++ b/t/t9100-git-svn-basic.sh
@@ -21,7 +21,7 @@ test_expect_success 'git svn help works anywhere' '
 '
 
 test_expect_success \
-    'initialize git svn' '
+	'initialize git svn' '
 	mkdir import &&
 	(
 		cd import &&
@@ -38,9 +38,9 @@ test_expect_success \
 	rm -rf import &&
 	git svn init "$svnrepo"'
 
-test_expect_success \
-    'import an SVN revision into git' \
-    'git svn fetch'
+test_expect_success 'import an SVN revision into git' '
+	git svn fetch
+'
 
 test_expect_success "checkout from svn" 'svn co "$svnrepo" "$SVN_TREE"'
 
@@ -233,27 +233,26 @@ test_expect_success POSIXPERM,SYMLINKS "$name" '
 '
 
 test_expect_success 'exit if remote refs are ambigious' '
-        git config --add svn-remote.svn.fetch \
+	git config --add svn-remote.svn.fetch \
 		bar:refs/remotes/git-svn &&
 	test_must_fail git svn migrate
 '
 
 test_expect_success 'exit if init-ing a would clobber a URL' '
-        svnadmin create "${PWD}/svnrepo2" &&
-        svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
-        git config --unset svn-remote.svn.fetch \
+	svnadmin create "${PWD}/svnrepo2" &&
+	svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
+	git config --unset svn-remote.svn.fetch \
 		"^bar:refs/remotes/git-svn$" &&
 	test_must_fail git svn init "${svnrepo}2/bar"
         '
 
-test_expect_success \
-  'init allows us to connect to another directory in the same repo' '
-        git svn init --minimize-url -i bar "$svnrepo/bar" &&
-        git config --get svn-remote.svn.fetch \
-                              "^bar:refs/remotes/bar$" &&
-        git config --get svn-remote.svn.fetch \
-			      "^:refs/remotes/git-svn$"
-        '
+test_expect_success 'init allows us to connect to another directory in the same repo' '
+	git svn init --minimize-url -i bar "$svnrepo/bar" &&
+	git config --get svn-remote.svn.fetch \
+		"^bar:refs/remotes/bar$" &&
+	git config --get svn-remote.svn.fetch \
+		"^:refs/remotes/git-svn$"
+'
 
 test_expect_success 'dcommit $rev does not clobber current branch' '
 	git svn fetch -i bar &&
-- 
gitgitgadget
Previous: John Cai via GitGitGadgetNext: John Cai via GitGitGadget
Message 8 of 11 in “tests: modernize test format part 2”
  1. 00/10 tests: modernize test format part 2John Cai via GitGitGadget, May 20, 2023
  2. 01/10 t7110-reset-merge: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  3. 04/10 t7508-status: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  4. 02/10 t7111-reset-table: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  5. 03/10 t7201-co: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  6. 05/10 t7600-merge: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  7. 06/10 t7700-repack: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  8. 07/10 t9100-git-svn-basic: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  9. 08/10 t9104-git-svn-follow-parent: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  10. 09/10 t9200-git-cvsexportcommit: modernize test formatJohn Cai via GitGitGadget, May 20, 2023
  11. 10/10 t9400-git-cvsserver-server: modernize test formatJohn Cai via GitGitGadget, May 20, 2023

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.