tests: fix incorrect --write-junit-xml code
commit7253f7ca9fdc5a19f2a9ee5867a20182e10551d6
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 14 Jul 2022 09:00:34 +0000 (14 09:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Jul 2022 17:02:06 +0000 (14 10:02 -0700)
tree91635b77458abaab61509962ff09fb94f4152d50
parentcadcafc3311de7f6fae5f3add10cde4f93268ff8
tests: fix incorrect --write-junit-xml code

In 78d5e4cfb4b (tests: refactor --write-junit-xml code, 2022-05-21),
this developer refactored the `--write-junit-xml` code a bit, including
the part where the current test case's title was used in a `set`
invocation, but failed to account for the fact that some test cases'
titles start with a long option, which the `set` misinterprets as being
intended for parsing.

Let's fix this by using the `set -- <...>` form.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-junit.sh