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

[PATCH 1/3] tests for push --quiet

From
Clemens Buchacher <drizzd@aon.at>
Date
Sep 3, 2011, 16:34 UTC
Message-ID
<1315067656-2846-2-git-send-email-drizzd@aon.at>
In-Reply-To
<1315067656-2846-1-git-send-email-drizzd@aon.at>
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
---
 t/t5523-push-upstream.sh |    7 +++++++
 t/t5541-http-push.sh     |    8 ++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/t/t5523-push-upstream.sh b/t/t5523-push-upstream.sh
index c229fe6..9ee52cf 100755
--- a/t/t5523-push-upstream.sh
+++ b/t/t5523-push-upstream.sh
@@ -108,4 +108,11 @@ test_expect_failure TTY 'push --no-progress suppresses progress' '
 	! grep "Writing objects" err
 '
 
+test_expect_success TTY 'quiet push' '
+	ensure_fresh_upstream &&
+
+	test_terminal git push --quiet --no-progress upstream master 2>&1 | tee output &&
+	test_cmp /dev/null output
+'
+
 test_done
diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh
index a73c826..0dcb8df 100755
--- a/t/t5541-http-push.sh
+++ b/t/t5541-http-push.sh
@@ -5,6 +5,7 @@
 
 test_description='test smart pushing over http via http-backend'
 . ./test-lib.sh
+. "$TEST_DIRECTORY"/lib-terminal.sh
 
 if test -n "$NO_CURL"; then
 	skip_all='skipping test, git built without http support'
@@ -154,5 +155,12 @@ test_expect_success 'push (chunked)' '
 	 test $HEAD = $(git rev-parse --verify HEAD))
 '
 
+test_expect_failure TTY 'quiet push' '
+	cd "$ROOT_PATH"/test_repo_clone &&
+	test_commit quiet &&
+	test_terminal git push --quiet --no-progress 2>&1 | tee output &&
+	test_cmp /dev/null output
+'
+
 stop_httpd
 test_done
-- 
1.7.6.1
Previous: Clemens BuchacherNext: Clemens Buchacher
Message 3 of 17 in “[BUG] git push --quiet fails with older versions”
  1. Tobias UlmerSep 3, 2011
  2. Clemens BuchacherSep 3, 2011
  3. 1/3 tests for push --quietClemens Buchacher, Sep 3, 2011
  4. 2/3 fix push --quiet via httpClemens Buchacher, Sep 3, 2011
  5. 3/3 push: old receive-pack does not understand --quietClemens Buchacher, Sep 3, 2011
  6. Junio C HamanoSep 5, 2011
  7. Junio C HamanoSep 5, 2011
  8. Junio C HamanoSep 5, 2011
  9. Michael J GruberSep 5, 2011
  10. Michael J GruberSep 5, 2011
  11. t5541: avoid TAP test miscountingMichael J Gruber, Sep 5, 2011
  12. Junio C HamanoSep 5, 2011
  13. Michael J GruberSep 6, 2011
  14. Junio C HamanoSep 6, 2011
  15. Clemens BuchacherSep 6, 2011
  16. Tobias UlmerSep 4, 2011
  17. Junio C HamanoSep 4, 2011

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.