Skip to content

Trace test is reporting incorrect test results. #167

Closed

Description

@lgirdwood

The trace test is to test that the trace output is working. i.e. that DMA trace has valid trace data.

The trace test currently parses the trace data for "error" and reports any "error" strings found as a test fail. This is wrong. This test must not parse the trace log for "error" as it reporting failed trace functionality due to "error" strings in the trace output.

Parsing for "error" is valid for other tests but not this one.

Activity

  1. aiChaoSONG commented on Apr 3, 2020

    @aiChaoSONG

    There is already a fix #161

  2. marc-hb commented on Apr 27, 2020

    @marc-hb
    Collaborator

    due to "error" strings in the trace output.

    Can someone copy an example?

    Parsing for "error" is valid for other tests

    Parsing should always be avoided when possible. I'm not familiar with this test suite yet but in general searching for kernel errors can be done with just one line:

    sudo journalctl [ --boot ] --dmesg -p 3
    

    and for warnings:

    sudo journalctl [ --boot ] --dmesg -p 4
    
  3. aiChaoSONG commented on Apr 27, 2020

    @aiChaoSONG

    This issue is already fixed, we are not detecting error from firmware log anymore.
    @marc-hb sorry for misleading you here. the firmware log is not in dmesg, it is extract by sof-logger.

  4. marc-hb commented on Apr 23, 2021

    @marc-hb
    Collaborator

    Parsing for "error" is valid for other tests but not this one.

    Too bad no other test does this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type:bugSomething doesn't work as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions