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

Re: Failures in t9001-send-email

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 22, 2022, 06:51 UTC
Message-ID
<xmqq7d7hd31g.fsf@gitster.g>
In-Reply-To
<36a43fbb-92af-3718-f2fb-51645564a961@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
Show 10 quoted lines
>> I had a look at the tests to try to guess what was wrong, but I didn't
>> come up with anything.  Any ideas?
>
> You run ./t9001-send-email.sh (without `prove`). Add -v to see some
> verbiage from the tests, throw in -i to have it stop at the first
> failure (so you don't have to scroll back to find it), and add -x for
> additional traces of commands that the shell executes (to see the exact
> command that failed).
>
> IFAIC, I always go all in, i.e., either all or none of -v -i -x.
Good suggestion.

I rarely (if ever) use "-x" myself but another useful thing to know, while learning how the existing test works (i.e. studying a working test, not debugging a broken test) is to use "-d", possibly together with "-v", which refrains from removing the trash directory. Then you can go in and examine the state of the test repository the tests left.

Thanks.
Previous: Johannes SixtNext: Alyssa Ross
Message 9 of 15 in “Should sendemail.confirm default to always?”
  1. Alyssa RossApr 21, 2022
  2. Ævar Arnfjörð BjarmasonApr 21, 2022
  3. Junio C HamanoApr 21, 2022
  4. Failures in t9001-send-emailAlyssa Ross, Apr 21, 2022
  5. rsbecker@nexbridge.comApr 21, 2022
  6. Alyssa RossApr 22, 2022
  7. rsbecker@nexbridge.comApr 22, 2022
  8. Johannes SixtApr 22, 2022
  9. Junio C HamanoApr 22, 2022
  10. Alyssa RossApr 22, 2022
  11. send-email: always confirm by defaultAlyssa Ross, Apr 22, 2022
  12. Ævar Arnfjörð BjarmasonApr 22, 2022
  13. Junio C HamanoApr 22, 2022
  14. Junio C HamanoApr 21, 2022
  15. Alyssa RossApr 21, 2022

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.