mbox series

[v3,0/4] test-lib-functions.sh: trickery to make -x less verbose

Message ID cover-0.4-00000000000-20210423T072824Z-avarab@gmail.com (mailing list archive)
Headers show
Series test-lib-functions.sh: trickery to make -x less verbose | expand

Message

Ævar Arnfjörð Bjarmason April 23, 2021, 7:29 a.m. UTC
This series makes the "-x" output less verbose for our various helper
functions, mainly using the trickery of feeding "$@" to "test" to rely
on it to die when given too many arguments.

Since v2[1] I ejected the 3rd patch. I thought some test-lib code was
removed, but was only grepping t/, turned out it was used in ci/.

https://lore.kernel.org/git/cover-0.5-00000000000-20210421T144921Z-avarab@gmail.com

Ævar Arnfjörð Bjarmason (4):
  test-lib-functions: normalize test_path_is_missing() debugging
  Revert and amend "test-lib-functions: assert correct parameter count"
  test-helpers: rename "path-utils is_valid_path" to "is-valid-paths"
  test-helpers: split "file-size" into "file-size(s)"

 t/helper/test-path-utils.c  | 13 +++++--
 t/t0060-path-utils.sh       |  2 +-
 t/t1050-large.sh            |  2 +-
 t/t5319-multi-pack-index.sh |  6 ++--
 t/test-lib-functions.sh     | 67 ++++++++++++++++---------------------
 5 files changed, 45 insertions(+), 45 deletions(-)

Range-diff against v2:
1:  ba9d6251ad5 = 1:  26a3d552d88 test-lib-functions: normalize test_path_is_missing() debugging
2:  5f8e5ad27f5 = 2:  3a570321770 Revert and amend "test-lib-functions: assert correct parameter count"
3:  44948c6ace9 < -:  ----------- test helpers: remove unused test-tool path-utils slice-tests
4:  ae5dc5d03b3 = 3:  bf35091a112 test-helpers: rename "path-utils is_valid_path" to "is-valid-paths"
5:  947791d9535 = 4:  ac0b920c041 test-helpers: split "file-size" into "file-size(s)"