]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: remove _test_script_regex
authorJán Tomko <jtomko@redhat.com>
Thu, 19 Aug 2021 12:12:57 +0000 (14:12 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 20 Aug 2021 11:28:08 +0000 (13:28 +0200)
Commit abab5c47f8060eddf0212084a1d70c4b1e3d92dd incorrectly
assumed we do not have any files that could be affected by

  sc_prohibit_reversed_compare_failure

due to the conditional assignment:

  _test_script_regex ?= \<init\.sh\>

so it removed the check.

Also remove the leftover assignment of test-lib.sh,
since any new code attempting to use the compare function
with reversed arguments should be rejected by review
for using shell instead of C or Python.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
build-aux/syntax-check.mk

index 5d956c183f4d11c9a1874d835c807ed71689fefa..2058af0b77ce175262b172fb7a7706466b6ff08b 100644 (file)
@@ -108,8 +108,6 @@ local-check :=                                                              \
 
 syntax-check: $(local-check)
 
-_test_script_regex = \<test-lib\.sh\>
-
 # Files that should never cause syntax check failures.
 VC_LIST_ALWAYS_EXCLUDE_REGEX = \
   (^(docs/(news(-[0-9]*)?\.html\.in|.*\.patch))|\.(po|fig|gif|ico|png))$$