Skip to content

Commit a7b9428

Browse files
committed
check-kmod-load-unload-after-playback: disable logging in subtest
This unblocks #1170 and allows "installing" the func_exit_handler() trap in start_test() which will allow making start_test() optional. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 3b71e39 commit a7b9428

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test-case/check-kmod-load-unload-after-playback.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ fi
6464

6565
playback_subtest()
6666
{
67-
"$case_dir"/check-playback.sh -l 1 -t $tplg -d $pb_duration ||
67+
# Disable logging with -s because subtests don't invoke func_exit_handler() which
68+
# can leave loggers behind (and hang rmmod)
69+
# Also, we don't want two (concurrent!?) sets of logs for the same test.
70+
"$case_dir"/check-playback.sh -l 1 -t $tplg -d $pb_duration -s ||
6871
die "aplay check failed"
6972
}
7073

0 commit comments

Comments
 (0)