diff options
author | 2020-02-18 14:46:49 -0500 | |
---|---|---|
committer | 2020-02-19 11:23:33 +0000 | |
commit | b649cf5c09a45df2df9a8f8f0920c6dfb07b8d76 (patch) | |
tree | 1af251539450b77926ccab9294b4d939f162f2dd /meta/recipes-core/glib-2.0/glib-2.0 | |
parent | a40a93e81766513cf710e713093ab74c6ec936c3 (diff) | |
download | openembedded-core-contrib-b649cf5c09a45df2df9a8f8f0920c6dfb07b8d76.tar.gz |
glib-2.0: add dependencies to fix ptest failures
There are a number of ptest failures due to executables not found in
the image. Since these executables are in FILES_${PN}-dev, depending
all of -dev which is an overkill. We take them out of -dev and put in
-utils, then depend on the latter instead.
When starting a glib ptest but decided to Ctrl-c interrupt midway,
./run-ptest cannot be restarted unless running `userdel glib2-test`
manually. Therefore adding a check prior to ptest will ensure the
ptest can be restarted.
Signed-off-by: Matthew Zeng <matthew.zeng@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/run-ptest | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/run-ptest b/meta/recipes-core/glib-2.0/glib-2.0/run-ptest index fc50082c8e..7a231b514b 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0/run-ptest +++ b/meta/recipes-core/glib-2.0/glib-2.0/run-ptest @@ -1,6 +1,9 @@ #! /bin/sh set -eux +if id -u glib2-test; then + userdel glib2-test +fi useradd glib2-test su glib2-test -c 'gnome-desktop-testing-runner glib' userdel glib2-test |