From 93b7e6274ec5f600d45bf343b47b9ec302af1aa5 Mon Sep 17 00:00:00 2001 From: Amery Song Date: Wed, 8 Apr 2020 10:18:59 +0800 Subject: [PATCH] test-case: add firmware load subtest for kmod test As the kernel has made its log less verbose, the key word 'firmware boot complete' we use is not in the less verbose log now. So remove the check of this keyword. Instead, add verify-sof-firmware-load.sh subtest to check if firmware is loaded successfully after module insertion. Signed-off-by: Amery Song --- test-case/check-kmod-load-unload.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/test-case/check-kmod-load-unload.sh b/test-case/check-kmod-load-unload.sh index 6ee3199b..f1a798b8 100755 --- a/test-case/check-kmod-load-unload.sh +++ b/test-case/check-kmod-load-unload.sh @@ -97,15 +97,12 @@ do exit 1 fi - dlogi "checking for fw_boot success" - keyword_info=$(dmesg |grep sof-audio | grep 'boot complete') - if [[ ! "$keyword_info" ]]; then - dloge "Error: Boot Complete not found in dmesg, fw_boot empty" - exit 1 - fi + dlogi "checking if firmware is loaded successfully" + $(dirname ${BASH_SOURCE[0]})/verify-sof-firmware-load.sh > /dev/null + [[ $? -ne 0 ]] && dloge "Falied to load firmware after module insertion" && exit 1 # successful remove/insert module pass - dlogi "==== completed boot firmware: $idx of $loop_cnt ====" + dlogi "==== firmware boot complete: $idx of $loop_cnt ====" # pulseaudio deamon will detect the snd_sof_pci device after 3s # so after 2s snd_sof_pci device will in used status which is block current case logic