Subversion Repositories Kolibri OS

Rev

Rev 9326 | Rev 9328 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9326 Rev 9327
Line 131... Line 131...
131
 
131
 
132
        if os.path.exists(test_file):
132
        if os.path.exists(test_file):
133
            tests.append(test_folder_path)
133
            tests.append(test_folder_path)
Line -... Line 134...
-
 
134
    return tests
-
 
135
 
-
 
136
def collect_umka_tests():
-
 
137
    tests = []
-
 
138
 
-
 
139
    for test_file in os.listdir("umka/test"):
-
 
140
        test_file_path = f"umka/test/{test_file}"
-
 
141
        if not test_file.endswith(".t"):
-
 
142
            continue
-
 
143
        if not os.path.isfile(test_file_path):
-
 
144
            continue
-
 
145
        tests.append(test_file_path)
134
    return tests
146
    return tests
135
 
147
 
136
def run_tests_serially_thread(test, root_dir):
148
def run_tests_serially_thread(test, root_dir):
137
    test_number = 1
149
    test_number = 1
Line 189... Line 201...
189
    check_tools(tools)
201
    check_tools(tools)
Line 190... Line 202...
190
    
202
    
191
    prepare_test_img()
203
    prepare_test_img()
192
    build_umka()
204
    build_umka()
-
 
205
    tests = collect_tests()
193
    tests = collect_tests()
206
    print(collect_umka_tests)
194
    serial_executor_thread = run_tests_serially(tests, root_dir)
207
    serial_executor_thread = run_tests_serially(tests, root_dir)