Fix falied case on opensuse15.5. 49/309849/1
authorxuhy <huayong.xu@samsung.com>
Wed, 17 Apr 2024 07:36:11 +0000 (15:36 +0800)
committerxuhy <huayong.xu@samsung.com>
Wed, 17 Apr 2024 07:41:04 +0000 (15:41 +0800)
loop kernel module is not loaded by default on opensuse15.5.

Change-Id: I89d10d9b91528d7803ba6084145818a097ea70c5
Signed-off-by: xuhy <huayong.xu@samsung.com>
cases/create/opt_cases/mic_cr_loop_tmpfs.case

index 684dc9b..bec223a 100755 (executable)
@@ -10,6 +10,8 @@ python3 repo_parse.py handset_blackbay.ks repo_config.json common-no-source-prof
 losetup_path=$(sudo which losetup)
 sudo $losetup_path -a
 loop_used_before=$(sudo $losetup_path -a | wc -l)
+modprobe_path=$(sudo which modprobe)
+sudo $modprobe_path loop
 sudo mic -d -v cr loop -A=i686 handset_blackbay.ks --tmpfs --logfile=./log/handset.log
 test -f ./log/handset.log
 grep 'Finished' ./log/handset.log