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

Re: Failures in t9001-send-email

From
Alyssa Ross <hi@alyssa.is>
Date
Apr 22, 2022, 08:00 UTC
Message-ID
<20220422080052.diovj33bfnra62uv@eve>
In-Reply-To
<xmqq7d7hd31g.fsf@gitster.g>
On Thu, Apr 21, 2022 at 11:51:07PM -0700, Junio C Hamano wrote:
Show 21 quoted lines
> Johannes Sixt <j6t@kdbg.org> writes:
>
> >> 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.
Thank you both for these tips.

I was able to determine the issue by running the test with -vixd, noticing which command failed, and then trying to set up my shell environment manually to match the test's (PATH, PERLLIB, committer/author info, etc.), and ran the same command with the leftover trash directory. This produced error output that didn't show up when I was running the test (not sure why) that gave me a line number in git-send-email.perl. I noticed that it was trying to load Term::ReadLine near that line, and I didn't have that installed in my development environment.

Now that I have that installed, all send-email tests pass. Thanks again!

Previous: Junio C HamanoNext: Alyssa Ross
Message 10 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.