Commit ad67b625 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix log file name

parent 4e408dab
Loading
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ def main():
            run_file, README_FILES_PARALLEL, [result_dict] * len(README_FILES_PARALLEL)
        )

    # JBM test after that
    # JBM test can not run concurrently with the others
    run_file(README_FILES_JBM[0], result_dict)

    return analyze_results(result_dict)
@@ -39,10 +39,9 @@ def analyze_results(result_dict):
    ret = 0

    for filename, ret_code in result_dict.items():
        print(filename, ret_code)
        if ret_code != 0:
            print(f"========= Test for {filename} failed! See log below: ==========")
            with open(filename.replace(".txt", "log.txt")) as f:
            with open(filename.replace(".txt", "_log.txt")) as f:
                print(f.read())
            ret = 1

@@ -56,14 +55,20 @@ def run_file(filename: str, result_dict: dict):


def environment_is_correct():
    ok = True
    """
    Check that the folder with the test resources is et up correctly:
    - all Readme files there
    - EVS binaris available in bin/
    - testv and switchPaths folder exist - Content is not checked, though
    """
    ret = True

    for path in README_FILES + BINARY_PATHS + FOLDER_PATHS:
        if not pathlib.Path(path).exists():
            print(f"Environment setup is incorrect - {path} not found.")
            ok = False
            ret = False

    return ok
    return ret


if __name__ == "__main__":