Move find_tests to where it's has arguments

pull/2590/head
Jimmy Brisson 2016-08-11 10:03:23 -05:00 committed by 0xc0170
parent 7ca8705094
commit aeeffcc85f
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,6 @@ if __name__ == '__main__':
if not base_source_paths: if not base_source_paths:
base_source_paths = ['.'] base_source_paths = ['.']
all_tests = find_tests(base_source_paths[0])
start = time() start = time()
build_report = {} build_report = {}
@ -180,6 +179,7 @@ if __name__ == '__main__':
if options.continue_on_build_fail or library_build_success: if options.continue_on_build_fail or library_build_success:
# Build all the tests # Build all the tests
all_tests = find_tests(base_source_paths[0], target_name, toolchain_name)
test_build_success, test_build = build_tests(all_tests, [build_directory], build_directory, target, target_toolchain, test_build_success, test_build = build_tests(all_tests, [build_directory], build_directory, target, target_toolchain,
clean=options.clean, clean=options.clean,
report=build_report, report=build_report,