Skip to content

[BUG] "Test Result: FAIL!" is missing when firmware path is not found from journalctl #979

Description

@miRoox

Describe the bug
When firmware path is not found from journalctl on an IPC4 test, it will immediately exit without report "Test Result: FAIL!". So our CI will treat it as TIMEOUT.

To Reproduce
It's hard to reproduce, but we can mock the case like #978.

Expected behavior
Report "Test Result: FAIL!" at the end of the log.

Detail Info

  1. Branch name and commit hash of the 3 repositories: sof (firmware/topology), linux (kernel driver) and sof-test (test case)
  2. Test report ID (if you find it from test report)
    • ID: 17476
  3. Test DUT Model (or a brief discribtion about the device)
    • MODEL: TGLU_RVP_NOCODEC_IPC4ZPH

Screenshots or console output

First occurrence:

2022-11-08 22:01:29 UTC N ===== Testing: (Round: 50/50) (PCM: DMIC [hw:0,10]) (Loop: 1/1) =====
2022-11-08 22:01:29 UTC N no file prefix, use /dev/null as dummy capture output
2022-11-08 22:01:29 UTC N arecord -Dhw:0,10 -r 48000 -c 4 -f S32_LE -d 1 /dev/null -v -q
Hardware PCM card 0 'sof-nocodec' device 10 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S32_LE
subformat : STD
channels : 4
rate : 48000
exact rate : 48000 (48000/1)
msbits : 32
buffer_size : 4096
period_size : 1024
period_time : 21333
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 1024
period_event : 0
start_threshold : 1
stop_threshold : 4096
silence_threshold: 0
silence_size : 0
boundary : 4611686018427387904
appl_ptr : 0
hw_ptr : 0
declare -- cmd="journalctl_cmd --since=@1667944672"
2022-11-08 22:01:31 UTC [REMOTE_ERROR] firmware path not found from journalctl, no firmware loaded or debug option disabled?

Second occurrence (after TIMEOUT):

ln: failed to create hard link '/tmp/sof-test-card0.lock': File exists
2022-11-08 22:08:09 UTC [REMOTE_ERROR] ktime=2377 sof-test PID=12284: /tmp/sof-test-card0.lock already taken by PID 9180! Stealing it...
2022-11-08 22:08:09 UTC N ktime=2377 sof-test PID=12284: starting
2022-11-08 22:08:09 UTC [REMOTE_ERROR] firmware path not found from journalctl, no firmware loaded or debug option disabled?
2022-11-08 22:08:09 UTC [REMOTE_ERROR] Starting func_exit_handler(), exit status=1, FUNCNAME stack:
2022-11-08 22:08:09 UTC [REMOTE_ERROR] die() @ /home/ubuntu/sof-test/test-case/../case-lib/lib.sh
2022-11-08 22:08:09 UTC [REMOTE_ERROR] is_firmware_file_zephyr() @ /home/ubuntu/sof-test/test-case/../case-lib/lib.sh:697
2022-11-08 22:08:09 UTC [REMOTE_ERROR] logger_disabled() @ /home/ubuntu/sof-test/test-case/../case-lib/lib.sh:746
2022-11-08 22:08:09 UTC [REMOTE_ERROR] main() @ /home/ubuntu/sof-test/test-case/check-playback.sh:57
2022-11-08 22:08:10 UTC [REMOTE_ERROR] firmware path not found from journalctl, no firmware loaded or debug option disabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Critical bugs or normal featuresarea:logsLog and results collection, storage, etc.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