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

[PATCH v2 0/1] t3420 remove progress from output

From
PGPhillip Wood via GitGitGadget <gitgitgadget@gmail.com>
Date
Jul 4, 2019, 09:47 UTC
Message-ID
<pull.276.v2.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.276.git.gitgitgadget@gmail.com>
Remove ugliness in the tests that check the output of git rebase
I've updated this to avoid repeated calls to printf as suggested by Junio
Based-On: sg/rebase-progress
Phillip Wood (1):
  t3420: remove progress lines before comparing output
 t/t3420-rebase-autostash.sh | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
base-commit: 5b12e3123b7b70e3875404a4ffe571ca079364fe
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-276%2Fphillipwood%2Fwip%2Ft3420-remove-progress-from-output-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-276/phillipwood/wip/t3420-remove-progress-from-output-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/276
Range-diff vs v1:
 1:  52501623f6 ! 1:  e1b4023bc0 t3420: remove progress lines before comparing output
     @@ -20,6 +20,16 @@
       diff --git a/t/t3420-rebase-autostash.sh b/t/t3420-rebase-autostash.sh
       --- a/t/t3420-rebase-autostash.sh
       +++ b/t/t3420-rebase-autostash.sh
     +@@
     + 	echo conflicting-change >file2 &&
     + 	git add . &&
     + 	test_tick &&
     +-	git commit -m "related commit"
     ++	git commit -m "related commit" &&
     ++	remove_progress_re="$(printf "s/.*\\r//")"
     + '
     + 
     + create_expected_success_am () {
      @@
       	q_to_cr >expected <<-EOF
       	$(grep "^Created autostash: [0-9a-f][0-9a-f]*\$" actual)
     @@ -53,7 +63,7 @@
       		fi &&
       		create_expected_success_$suffix &&
      -		test_i18ncmp expected actual
     -+		sed "$(printf "s/.*\\r//")" <actual >actual2 &&
     ++		sed "$remove_progress_re" <actual >actual2 &&
      +		test_i18ncmp expected actual2
       	'
       
     @@ -63,7 +73,7 @@
       		fi &&
       		create_expected_failure_$suffix &&
      -		test_i18ncmp expected actual
     -+		sed "$(printf "s/.*\\r//")" <actual >actual2 &&
     ++		sed "$remove_progress_re" <actual >actual2 &&
      +		test_i18ncmp expected actual2
       	'
       }
-- 
gitgitgadget
Previous: Phillip WoodNext: Phillip Wood via GitGitGadget
Message 7 of 8 in “t3420 remove progress from output”
  1. 0/1 t3420 remove progress from outputPhillip Wood via GitGitGadget, Jul 1, 2019
  2. 1/1 t3420: remove progress lines before comparing outputPhillip Wood via GitGitGadget, Jul 1, 2019
  3. Junio C HamanoJul 1, 2019
  4. Phillip WoodJul 2, 2019
  5. Junio C HamanoJul 2, 2019
  6. Phillip WoodJul 4, 2019
  7. 0/1 t3420 remove progress from outputPhillip Wood via GitGitGadget, Jul 4, 2019
  8. 1/1 t3420: remove progress lines before comparing outputPhillip Wood via GitGitGadget, Jul 4, 2019

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.