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

correct file removal

parent f93cf20e
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -713,7 +713,7 @@ def sba_dec(
        decoder_frontend.run(
            output_config,
            sampling_rate,
            dut_in_pkt
            dut_in_pkt,
            dut_out_raw,
        )

@@ -738,5 +738,6 @@ def sba_dec(

        # remove DUT output files when test result is OK (to save disk space)
        if not keep_files:
            os.remove(dut_in_pkt)
            os.remove(dut_out_raw)
            if not decoder_only:
                os.remove(dut_in_pkt)
+2 −4
Original line number Diff line number Diff line
@@ -506,10 +506,8 @@ class DecoderFrontend:
            try:
                if not os.path.exists(str(input_bitstream_path) + eid_output_suffix):
                    result = run(eid_command, check=True)
            except Exception as e:
                print(result.stderr)
                print(result.stdout)
                pytest.fail(f"eid-xor operation failed!")
            except Exception:
                pytest.fail("eid-xor operation failed!")

            input_bitstream_path += eid_output_suffix