Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Mar 1, 2022

2 commits, the main one:

The purpose of SOF_TEST_INTERVAL is to avoid log gaps between tests,
not between test iterations of the same test.

Fixes issue where the (recent) check-kmod-load-unload.sh was catching
multiple firmware boots, including boots from previous test
iterations, example:

sof-test/test-case/check-mod-load-unload.sh -l 50

Polling 'sof_firmware_boot_complete --since=@1646100584' every 1s for 10s
[ 2968.155103] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: firmware boot complete
[ 2970.706560] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: firmware boot complete
[ 2974.522111] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: firmware boot complete
Completed 'sof_firmware_boot_complete --since=@1646100584' after 0s and 1 attempts

This may fix other, similar tests too.

cc:

The purpose of test code is to find problems, not hide them.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
The purpose of SOF_TEST_INTERVAL is to avoid log gaps between tests,
_not_ between test iterations of the same test.

Fixes issue where the (recent) check-kmod-load-unload.sh was catching
_multiple_ firmware boots, including boots from previous test
iterations, example:

sof-test/test-case/check-mod-load-unload.sh -l 50

Polling 'sof_firmware_boot_complete --since=@1646100584' every 1s for 10s
[ 2968.155103] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: firmware boot complete
[ 2970.706560] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: firmware boot complete
[ 2974.522111] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: firmware boot complete
Completed 'sof_firmware_boot_complete --since=@1646100584' after 0s and 1 attempts

This may fix other, similar tests too.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb requested review from aiChaoSONG and plbossart March 1, 2022 06:46
@marc-hb marc-hb marked this pull request as ready for review March 1, 2022 07:02
@marc-hb marc-hb requested a review from a team as a code owner March 1, 2022 07:02
@marc-hb marc-hb mentioned this pull request Mar 1, 2022
Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on my TGL device, works fine. Thanks @marc-hb

@marc-hb marc-hb merged commit 0addb17 into thesofproject:main Mar 1, 2022
@marc-hb marc-hb deleted the fix-test-interval branch March 1, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants