Commit 1639a8d6 authored by norvell's avatar norvell
Browse files

Change tests from asserts to pytest.fail

parent ecfd0f59
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -234,7 +234,8 @@ def test_masa_enc_dec(
                        mld = float(reason.split(':')[1].split()[0])
                    record_property("MLD",mld)
                # Report compare result
                assert cmp_result == 0, reason
                if cmp_result != 0:
                    pytest.fail(reason)                
            else:
                if get_mld:
                    record_property("MLD","0")
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ def test_param_file_tests(
            elif metadata_differs:
                msg += "metadata only"

            assert False, msg
            pytest.fail(msg)

        # remove DUT output files when test result is OK (to save disk space)
        if not keep_files:
+2 −1
Original line number Diff line number Diff line
@@ -205,7 +205,8 @@ def sba_dec_plc(
            record_property("MLD",mld)

        # report compare result
        assert cmp_result == 0, reason
        if cmp_result != 0:
            pytest.fail(reason)

        # remove DUT output files when test result is OK (to save disk space)
        if not keep_files:
+2 −1
Original line number Diff line number Diff line
@@ -693,7 +693,8 @@ def sba_dec(
            record_property("MLD",mld)

        # report compare result
        assert cmp_result == 0, reason
        if cmp_result != 0:
            pytest.fail(reason)

        # remove DUT output files when test result is OK (to save disk space)
        if not keep_files:
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ def test_evs_26444(test_tag):
        result1 = filecmp.cmp(cmd1[0], cmd1[1])
        result2 = True
    if not (result1 and result2):
        assert False, "Output differs" 
        pytest.fail("Output differs")

          
        
 No newline at end of file
Loading