diff options
author | Ross Burton <ross@burtonini.com> | 2020-10-01 17:11:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-06 23:14:25 +0100 |
commit | cddb58b0c6eb0d687e4da04f5da0752a4bf28e62 (patch) | |
tree | 051c44a3ecc904128d51cc27c4689ad2cdd14054 /meta/recipes-extended | |
parent | b37ebab71b9466a40ca204f31dcb60de1c407993 (diff) | |
download | poky-cddb58b0c6eb0d687e4da04f5da0752a4bf28e62.tar.gz |
parted: improve ptest
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.
(From OE-Core rev: 9d3cc0fb89cc4bd8a4f4fe168eff08a3c8bc8d2f)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/parted/files/run-ptest | 2 | ||||
-rw-r--r-- | meta/recipes-extended/parted/parted_3.3.bb | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | mkdir -p /etc/udev/mount.blacklist.d | ||
3 | echo /dev/sda1 >> /etc/udev/mount.blacklist.d/parted-tmp | 4 | echo /dev/sda1 >> /etc/udev/mount.blacklist.d/parted-tmp |
5 | rm -f *.log | ||
4 | make -C tests test-suite.log | 6 | make -C tests test-suite.log |
5 | rm /etc/udev/mount.blacklist.d/parted-tmp | 7 | 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() { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | RDEPENDS_${PN}-ptest = "bash coreutils perl util-linux-losetup python3 make gawk e2fsprogs-mke2fs" | 48 | RDEPENDS_${PN}-ptest = "bash coreutils perl util-linux-losetup python3 make gawk e2fsprogs-mke2fs" |
49 | 49 | RRECOMMENDS_${PN}-ptest = "kernel-module-scsi-debug" | |
50 | RDEPENDS_${PN}-ptest_append_libc-glibc = "\ | 50 | RDEPENDS_${PN}-ptest_append_libc-glibc = "\ |
51 | glibc-utils \ | 51 | glibc-utils \ |
52 | locale-base-en-us \ | 52 | locale-base-en-us \ |