test lib: change "error" to "BUG" as appropriate
authorÆvar Arnfjörð Bjarmason <redacted>
Tue, 9 Feb 2021 21:41:49 +0000 (22:41 +0100)
committerJunio C Hamano <redacted>
Wed, 10 Feb 2021 21:54:34 +0000 (13:54 -0800)
commit9e9c7dd6f13e9a5027538854132b9f6b6ddb6be2
tree8f0c77266e37b662cc1b4fd95105a0e2c2f1ef6f
parentc0eedbc009d9587602bfb2057158c102a88acf3f
test lib: change "error" to "BUG" as appropriate

Change two uses of "error" in test-lib-functions.sh to "BUG".

In the first instance in "test_cmp_rev" the author of the "BUG"
function added in [1] had another in-flight patch adding this in [2],
and the two were never consolidated.

In the second case in "test_atexit" added in [3] that we could have
instead used "BUG" appears to have been missed.

1. 165293af3ce (tests: send "bug in the test script" errors to the
   script's stderr, 2018-11-19)

2. 30d0b6dccbc (test-lib-functions: make 'test_cmp_rev' more
   informative on failure, 2018-11-19)

3. 900721e15c4 (test-lib: introduce 'test_atexit', 2019-03-13)

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/test-lib-functions.sh
git clone https://git.99rst.org/PROJECT