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

Re: [PATCH 2/2] t3650: add more regression tests for failure conditions

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Dec 30, 2025, 14:33 UTC
Message-ID
<105d610f-f002-4ae5-96a6-f83595aba19d@app.fastmail.com>
In-Reply-To
<65d19cff-33cd-4209-af3d-6a518254019a@gmail.com>
On Tue, Dec 23, 2025, at 11:58, Phillip Wood wrote:
Show 11 quoted lines
>>[snip]
>> +test_expect_success 'option --onto or --advance is mandatory' '
>> +	cat >expect <<-\EOF &&
>> +	error: option --onto or --advance is mandatory
>> +	EOF
>> +	# First line is the error; rest is Usage
>> +	test_must_fail git replay topic1..topic2 >&1 2>&1 |
>> +		head -1 >actual &&
>
> Using a pipe means we lose the return value of test_must_fail here so
> the test wont fail if the command succeeds. Everything else looks good
Thanks. That’s kind of subtle for me. I’ll fix.
I’ll just test for the full output instead of the first line.
Previous: Kristoffer HaugsbakkNext: kristofferhaugsbakk@fastmail.com
Message 13 of 35 in “replay: die descriptively when invalid commit-ish”
  1. 0/2 replay: die descriptively when invalid commit-ishkristofferhaugsbakk@fastmail.com, Dec 22, 2025
  2. 1/2 replay: die descriptively when invalid commit-ishkristofferhaugsbakk@fastmail.com, Dec 22, 2025
  3. 2/2 t3650: add more regression tests for failure conditionskristofferhaugsbakk@fastmail.com, Dec 22, 2025
  4. Junio C HamanoDec 23, 2025
  5. Junio C HamanoDec 23, 2025
  6. Phillip WoodDec 23, 2025
  7. Phillip WoodDec 23, 2025
  8. Junio C HamanoDec 23, 2025
  9. Elijah NewrenDec 24, 2025
  10. Kristoffer HaugsbakkDec 30, 2025
  11. Kristoffer HaugsbakkDec 30, 2025
  12. Kristoffer HaugsbakkDec 30, 2025
  13. Kristoffer HaugsbakkDec 30, 2025
  14. 0/5 replay: die descriptively when invalid commit-ishkristofferhaugsbakk@fastmail.com, Dec 30, 2025
  15. 1/5 replay: remove dead code and rearrangekristofferhaugsbakk@fastmail.com, Dec 30, 2025
  16. 2/5 replay: find *onto only after testing for ref namekristofferhaugsbakk@fastmail.com, Dec 30, 2025
  17. 3/5 replay: die descriptively when invalid commit-ish is givenkristofferhaugsbakk@fastmail.com, Dec 30, 2025
  18. 4/5 replay: die if we cannot parse objectkristofferhaugsbakk@fastmail.com, Dec 30, 2025
  19. 5/5 t3650: add more regression tests for failure conditionskristofferhaugsbakk@fastmail.com, Dec 30, 2025
  20. Elijah NewrenDec 30, 2025
  21. Elijah NewrenDec 30, 2025
  22. Elijah NewrenDec 30, 2025
  23. Elijah NewrenDec 30, 2025
  24. Junio C HamanoDec 30, 2025
  25. Kristoffer HaugsbakkJan 2, 2026
  26. Kristoffer HaugsbakkJan 2, 2026
  27. 0/6 replay: die descriptively when invalid commit-ishkristofferhaugsbakk@fastmail.com, Jan 5, 2026
  28. 1/6 replay: remove dead code and rearrangekristofferhaugsbakk@fastmail.com, Jan 5, 2026
  29. 2/6 replay: find *onto only after testing for ref namekristofferhaugsbakk@fastmail.com, Jan 5, 2026
  30. 3/6 replay: die descriptively when invalid commit-ish is givenkristofferhaugsbakk@fastmail.com, Jan 5, 2026
  31. 4/6 replay: improve code comment and die messagekristofferhaugsbakk@fastmail.com, Jan 5, 2026
  32. 5/6 replay: die if we cannot parse objectkristofferhaugsbakk@fastmail.com, Jan 5, 2026
  33. 6/6 t3650: add more regression tests for failure conditionskristofferhaugsbakk@fastmail.com, Jan 5, 2026
  34. Elijah NewrenJan 6, 2026
  35. Junio C HamanoJan 7, 2026

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.