unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: Print the number of the test along with its name
@ 2014-03-04  6:40 Austin Clements
  2014-03-04 10:44 ` Tomi Ollila
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Austin Clements @ 2014-03-04  6:40 UTC (permalink / raw)
  To: notmuch

Previously, we stripped the "Tnnn-" part from the test name when
printing its description at the beginning of each test.  However, this
makes it difficult to find the source script for a test (e.g., when a
test fails).  Put this prefix back.
---
 test/test-lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index 78af170..9dad126 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -196,7 +196,7 @@ print_test_description ()
 {
 	test -z "$test_description_printed" || return 0
 	echo
-	echo $this_test_bare: "Testing ${test_description}"
+	echo $this_test: "Testing ${test_description}"
 	test_description_printed=1
 }
 if [ -z "$NOTMUCH_TEST_QUIET" ]
-- 
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] test: Print the number of the test along with its name
  2014-03-04  6:40 [PATCH] test: Print the number of the test along with its name Austin Clements
@ 2014-03-04 10:44 ` Tomi Ollila
  2014-03-04 17:47 ` Jani Nikula
  2014-03-06 11:51 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: Tomi Ollila @ 2014-03-04 10:44 UTC (permalink / raw)
  To: Austin Clements, notmuch

On Tue, Mar 04 2014, Austin Clements <amdragon@MIT.EDU> wrote:

> Previously, we stripped the "Tnnn-" part from the test name when
> printing its description at the beginning of each test.  However, this
> makes it difficult to find the source script for a test (e.g., when a
> test fails).  Put this prefix back.

LGTM.

Tomi


> ---
>  test/test-lib.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/test-lib.sh b/test/test-lib.sh
> index 78af170..9dad126 100644
> --- a/test/test-lib.sh
> +++ b/test/test-lib.sh
> @@ -196,7 +196,7 @@ print_test_description ()
>  {
>  	test -z "$test_description_printed" || return 0
>  	echo
> -	echo $this_test_bare: "Testing ${test_description}"
> +	echo $this_test: "Testing ${test_description}"
>  	test_description_printed=1
>  }
>  if [ -z "$NOTMUCH_TEST_QUIET" ]
> -- 
> 1.8.4.rc3
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] test: Print the number of the test along with its name
  2014-03-04  6:40 [PATCH] test: Print the number of the test along with its name Austin Clements
  2014-03-04 10:44 ` Tomi Ollila
@ 2014-03-04 17:47 ` Jani Nikula
  2014-03-06 11:51 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2014-03-04 17:47 UTC (permalink / raw)
  To: Austin Clements, notmuch

On Tue, 04 Mar 2014, Austin Clements <amdragon@MIT.EDU> wrote:
> Previously, we stripped the "Tnnn-" part from the test name when
> printing its description at the beginning of each test.  However, this
> makes it difficult to find the source script for a test (e.g., when a
> test fails).  Put this prefix back.

Yes, please!

Jani.


> ---
>  test/test-lib.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/test-lib.sh b/test/test-lib.sh
> index 78af170..9dad126 100644
> --- a/test/test-lib.sh
> +++ b/test/test-lib.sh
> @@ -196,7 +196,7 @@ print_test_description ()
>  {
>  	test -z "$test_description_printed" || return 0
>  	echo
> -	echo $this_test_bare: "Testing ${test_description}"
> +	echo $this_test: "Testing ${test_description}"
>  	test_description_printed=1
>  }
>  if [ -z "$NOTMUCH_TEST_QUIET" ]
> -- 
> 1.8.4.rc3
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] test: Print the number of the test along with its name
  2014-03-04  6:40 [PATCH] test: Print the number of the test along with its name Austin Clements
  2014-03-04 10:44 ` Tomi Ollila
  2014-03-04 17:47 ` Jani Nikula
@ 2014-03-06 11:51 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2014-03-06 11:51 UTC (permalink / raw)
  To: Austin Clements, notmuch

Austin Clements <amdragon@MIT.EDU> writes:

> Previously, we stripped the "Tnnn-" part from the test name when
> printing its description at the beginning of each test.  However, this
> makes it difficult to find the source script for a test (e.g., when a
> test fails).  Put this prefix back.

pushed,

d

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-06 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04  6:40 [PATCH] test: Print the number of the test along with its name Austin Clements
2014-03-04 10:44 ` Tomi Ollila
2014-03-04 17:47 ` Jani Nikula
2014-03-06 11:51 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).