]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2297] introduce a filter for process_rename test to prevent false positives
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 26 Oct 2012 02:55:16 +0000 (19:55 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 26 Oct 2012 02:55:16 +0000 (19:55 -0700)
isc-sysinfo (now) isn't expected to be renamed, so shouldn't be tested.

src/bin/tests/process_rename_test.py.in

index 1156b292924ce46af230bb49ea0ad4c5c27259ba..af7cc5ec9174dff199729967dc102b7d97d564f3 100644 (file)
@@ -39,6 +39,11 @@ class TestRename(unittest.TestCase):
         Then scan them by looking at the source text
         (without actually running them)
         """
+
+        # Scripts nameds contained in this list are not expected to be
+        # renamed and should be excluded from the list.
+        EXCLUDED_SCRIPTS = ['isc-sysinfo']
+
         # Regexp to find all the *_SCRIPTS = something lines (except for
         # noinst_SCRIPTS, which are scripts for tests), including line
         # continuations (backslash and newline)
@@ -59,6 +64,8 @@ class TestRename(unittest.TestCase):
                 for (var, _) in lines.findall(re.sub(excluded_lines, '',
                                                      makefile)):
                     for (script, _) in scripts.findall(var):
+                        if script in EXCLUDED_SCRIPTS:
+                            continue
                         self.__scan(d, script, fun)
 
 if __name__ == "__main__":