]> code.ossystems Code Review - openembedded-core.git/commitdiff
ptest-runner: install -collect-system-data script
authorTim Orling <ticotimo@gmail.com>
Fri, 8 Oct 2021 21:43:48 +0000 (14:43 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Oct 2021 16:21:44 +0000 (17:21 +0100)
When ptest-runner times out or otherwise fails, it tries to
call ptest-runner-collect-system-data, so install the script.

The script currently calls dmesg, df, free (which are provided
by busybox, etc.) and pstree (which is a sub-package of psmisc).

Add pstree as an RDEPENDS.

Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/ptest-runner/ptest-runner_2.4.2.bb

index 1d3c24a177630fd02763c53d7f852d9d695b0bf4..23ab48ba2b5f94d25da92b0adf7d1e739b9dfa69 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI = "git://git.yoctoproject.org/ptest-runner2 \
 
 S = "${WORKDIR}/git"
 
-FILES:${PN} = "${bindir}/ptest-runner"
+FILES:${PN} = "${bindir}/ptest-runner ${bindir}/ptest-runner-collect-system-data"
 
 EXTRA_OEMAKE = "-e MAKEFLAGS= CFLAGS="${CFLAGS} -DDEFAULT_DIRECTORY=\\\"${libdir}\\\"""
 
@@ -25,6 +25,10 @@ do_compile () {
 
 do_install () {
        install -D -m 0755 ${S}/ptest-runner ${D}${bindir}/ptest-runner
+       install -D -m 0755 ${S}/ptest-runner-collect-system-data ${D}${bindir}/ptest-runner-collect-system-data
 }
 
 RDEPENDS:${PN}:append:libc-glibc = " libgcc"
+
+# pstree is called by ptest-runner-collect-system-data
+RDEPENDS:${PN}:append = " pstree"