t/t6300: cleanup test_atom
commit04830eb762c83609a63805716daedb36014f6b6c
authorKousik Sanagavarapu <five231003@gmail.com>
Mon, 25 Sep 2023 17:43:08 +0000 (25 23:13 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Sep 2023 21:52:33 +0000 (25 14:52 -0700)
tree7cacad4c0d68bfa13ad515922b228582b935d764
parentbcb6cae2966cc407ca1afc77413b3ef11103c175
t/t6300: cleanup test_atom

Previously, when the executable part of "test_expect_{success,failure}"
(inside "test_atom") got "eval"ed, it would have been syntactically
incorrect if the second argument ($2, which is the format) to "test_atom"
were enclosed in single quotes because the $variables would get
interpolated even before the arguments to "test_expect_{success,failure}"
are formed.

So fix this and also some style issues along the way.

Helped-by: Junio C Hamano <gitster@pobox.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh