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

[PATCH 02/10] t7111-reset-table: modernize test format

From
John Cai via GitGitGadget <gitgitgadget@gmail.com>
Date
May 20, 2023, 16:13 UTC
Message-ID
<9ed2127a2595b42f45450358aecd2090d9cfea4c.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/t7111-reset-table.sh | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/t/t7111-reset-table.sh b/t/t7111-reset-table.sh
index 78f25c1c7ea..01b7c3503ca 100755
--- a/t/t7111-reset-table.sh
+++ b/t/t7111-reset-table.sh
@@ -10,9 +10,9 @@ TEST_PASSES_SANITIZE_LEAK=true
 
 
 test_expect_success 'creating initial commits' '
-    test_commit E file1 &&
-    test_commit D file1 &&
-    test_commit C file1
+	test_commit E file1 &&
+	test_commit D file1 &&
+	test_commit C file1
 '
 
 while read W1 I1 H1 T opt W2 I2 H2
@@ -74,13 +74,13 @@ B C C C keep   B C C
 EOF
 
 test_expect_success 'setting up branches to test with unmerged entries' '
-    git reset --hard C &&
-    git branch branch1 &&
-    git branch branch2 &&
-    git checkout branch1 &&
-    test_commit B1 file1 &&
-    git checkout branch2 &&
-    test_commit B file1
+	git reset --hard C &&
+	git branch branch1 &&
+	git branch branch2 &&
+	git checkout branch1 &&
+	test_commit B1 file1 &&
+	git checkout branch2 &&
+	test_commit B file1
 '
 
 while read W1 I1 H1 T opt W2 I2 H2
-- 
gitgitgadget
Previous: John Cai via GitGitGadgetNext: John Cai via GitGitGadget
Message 4 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.