FSFW Update #26

Merged
meierj merged 24 commits from mueller/sw-update into eive/develop 2021-12-15 10:01:34 +01:00
Showing only changes of commit 4a5204d6f6 - Show all commits

View File

@ -121,7 +121,7 @@ def handle_tests_type(args, build_dir_list: list):
build_directory = determine_build_dir(build_dir_list) build_directory = determine_build_dir(build_dir_list)
os.chdir(build_directory) os.chdir(build_directory)
if args.build: if args.build:
perform_lcov_operation(build_directory) perform_lcov_operation(build_directory, False)
if args.open: if args.open:
if not os.path.isdir('fsfw-tests_coverage'): if not os.path.isdir('fsfw-tests_coverage'):
print("No Unittest folder detected. Try to build them first with the -b argument") print("No Unittest folder detected. Try to build them first with the -b argument")
@ -159,8 +159,9 @@ def check_for_cmake_build_dir(build_dir_list: list) -> list:
return build_dir_list return build_dir_list
def perform_lcov_operation(directory): def perform_lcov_operation(directory: str, chdir: bool):
os.chdir(directory) if chdir:
os.chdir(directory)
os.system("cmake --build . -- fsfw-tests_coverage -j") os.system("cmake --build . -- fsfw-tests_coverage -j")