From 64249cf8fdd4b11524b57346de7b4a15a1b4c63d Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Fri, 26 Nov 2021 23:13:22 +0000 Subject: [PATCH] [KERNEL][TEST] Build UMKA if not built git-svn-id: svn://kolibrios.org@9327 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/runtests.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/kernel/trunk/runtests.py b/kernel/trunk/runtests.py index f06d1e4ce2..4602d04f7e 100755 --- a/kernel/trunk/runtests.py +++ b/kernel/trunk/runtests.py @@ -133,6 +133,18 @@ def collect_tests(): tests.append(test_folder_path) return tests +def collect_umka_tests(): + tests = [] + + for test_file in os.listdir("umka/test"): + test_file_path = f"umka/test/{test_file}" + if not test_file.endswith(".t"): + continue + if not os.path.isfile(test_file_path): + continue + tests.append(test_file_path) + return tests + def run_tests_serially_thread(test, root_dir): test_number = 1 for test in tests: @@ -191,6 +203,7 @@ if __name__ == "__main__": prepare_test_img() build_umka() tests = collect_tests() + print(collect_umka_tests) serial_executor_thread = run_tests_serially(tests, root_dir) serial_executor_thread.join()