From c2ee5fd49bbae71d331a02154b2f209fafbb06d6 Mon Sep 17 00:00:00 2001 From: Furior <68264134+Furrior@users.noreply.github.com> Date: Thu, 13 Jul 2023 06:29:53 +0700 Subject: [PATCH] Fix: tickled files cl for modularity (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What Does This PR Do ## Why It's Good For The Game ## Images of changes ## Testing ## Changelog :cl: fix: На этот раз точно пофиксил инклюды модульных файлов в тестах /:cl: --- tools/ci/unticked_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/unticked_files.py b/tools/ci/unticked_files.py index 351dfbeadd58..1080401ef740 100644 --- a/tools/ci/unticked_files.py +++ b/tools/ci/unticked_files.py @@ -38,7 +38,7 @@ def get_unticked_files(root:Path): with open(root / includer, 'r') as f: lines = [line for line in f.readlines() if line.startswith('#include')] included = [line.replace('#include ', '').rstrip('\r\n').strip('"') for line in lines] - nested_dmes = [file for file in included if ".dme" in file] + nested_dmes = ["/".join(list(includer.split('/')[0:-1])) + file for file in included if ".dme" in file] print(f'Found {len(included)} includes and {len(nested_dmes)} nested .dme\'s in {root / includer}') ticked_files.update([root / Path(includer).parent / Path(PureWindowsPath(i)) for i in included]) if nested_dmes: print(f"Additional include files: {nested_dmes}")