Add a RRECOMMENDS on kernel-module-scsi-debug as this module is needed
for many of the tests.

Create the udev mount blacklist directory before writing into it, as it
doesn't always exist.

Delete any existing log files before calling make, as otherwise the
tests cannot be repeated.

Signed-off-by: Ross Burton <[email protected]>
---
 meta/recipes-extended/parted/files/run-ptest | 2 ++
 meta/recipes-extended/parted/parted_3.3.bb   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/parted/files/run-ptest 
b/meta/recipes-extended/parted/files/run-ptest
index f39c478ce6..374f1bfbc9 100644
--- a/meta/recipes-extended/parted/files/run-ptest
+++ b/meta/recipes-extended/parted/files/run-ptest
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+mkdir -p /etc/udev/mount.blacklist.d
 echo /dev/sda1 >> /etc/udev/mount.blacklist.d/parted-tmp
+rm -f *.log
 make -C tests test-suite.log
 rm /etc/udev/mount.blacklist.d/parted-tmp
diff --git a/meta/recipes-extended/parted/parted_3.3.bb 
b/meta/recipes-extended/parted/parted_3.3.bb
index aa4d8042cf..a1fd3ef07b 100644
--- a/meta/recipes-extended/parted/parted_3.3.bb
+++ b/meta/recipes-extended/parted/parted_3.3.bb
@@ -46,7 +46,7 @@ do_install_ptest() {
 }
 
 RDEPENDS_${PN}-ptest = "bash coreutils perl util-linux-losetup python3 make 
gawk e2fsprogs-mke2fs"
-
+RRECOMMENDS_${PN}-ptest = "kernel-module-scsi-debug"
 RDEPENDS_${PN}-ptest_append_libc-glibc = "\
         glibc-utils \
         locale-base-en-us \
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#143004): 
https://lists.openembedded.org/g/openembedded-core/message/143004
Mute This Topic: https://lists.openembedded.org/mt/77243924/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to