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

Merge branch 'ci/add-bs-proc-tool-cmdlines-to-test-logs' into 'main'

[CI] log command lines of eid-xor and netsim tools

See merge request !1934
parents 92595b6b fce8ba28
Loading
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -749,6 +749,9 @@ class DecoderFrontend:
                            cwd = Path(tmp_dir).absolute()
                        else:
                            cwd = Path(run_dir).absolute()

                        eid_command_str = " ".join(eid_command)
                        log_dbg_msg(f"eid-xor command:\n {eid_command_str}")
                        result = run(eid_command, check=True, cwd=cwd)
            except Exception as e:
                pytest.fail(f"eid-xor operation failed! - {e}")
@@ -778,11 +781,11 @@ class DecoderFrontend:
            tracefile_path = input_bitstream_path.with_suffix(".netsimtrace")
            # TODO: need to check if the "1" works with every profile
            netsim_command = [
                netsim_path,
                netsim_profile,
                input_bitstream_path,
                netsim_bitstream_path,
                tracefile_path,
                str(netsim_path),
                str(netsim_profile),
                str(input_bitstream_path),
                str(netsim_bitstream_path),
                str(tracefile_path),
                "1",
            ]
            print(netsim_command)
@@ -793,6 +796,9 @@ class DecoderFrontend:
                    else:
                        cwd = Path(run_dir).absolute()
                    run(netsim_command, check=True, cwd=cwd)

                    netsim_command_str = " ".join(netsim_command)
                    log_dbg_msg(f"netsim command:\n {netsim_command_str}")
            except Exception as e:
                pytest.fail(f"netsim operation failed! - {e}")