diff options
author | Ross Burton <ross.burton@arm.com> | 2023-02-27 13:13:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-27 22:53:56 +0000 |
commit | aa5b901e1919b01b11d5a9a594d76c35a0686d33 (patch) | |
tree | 4d691b581512b5514f1564c5c347404193716f6b /meta | |
parent | 5a5ab7cdec7b3e01ddf95f73453e9fcfdd6b986e (diff) | |
download | poky-aa5b901e1919b01b11d5a9a594d76c35a0686d33.tar.gz |
ptest-runner: add non-root ptest user for tests to run as
Some tests really don't want to be run as root, either because they
expect to get "permission denied" errors occasionally, or have explicit
checks.
Instead of numerous recipes re-inventing user creation in run-ptest,
create a user in the ptest-runner recipe that they can all use.
(From OE-Core rev: d58cf08421e0f89840820370dd3c5b6e153efcbb)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/ptest-runner/ptest-runner_2.4.2.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-support/ptest-runner/ptest-runner_2.4.2.bb b/meta/recipes-support/ptest-runner/ptest-runner_2.4.2.bb index 5a1d329993..ee13e28c7d 100644 --- a/meta/recipes-support/ptest-runner/ptest-runner_2.4.2.bb +++ b/meta/recipes-support/ptest-runner/ptest-runner_2.4.2.bb | |||
@@ -32,3 +32,8 @@ RDEPENDS:${PN}:append:libc-glibc = " libgcc" | |||
32 | 32 | ||
33 | # pstree is called by ptest-runner-collect-system-data | 33 | # pstree is called by ptest-runner-collect-system-data |
34 | RDEPENDS:${PN}:append = " pstree" | 34 | RDEPENDS:${PN}:append = " pstree" |
35 | |||
36 | # Create a non-root user that test suites can use easily | ||
37 | inherit useradd | ||
38 | USERADD_PACKAGES = "${PN}" | ||
39 | USERADD_PARAM:${PN} = "--system --no-create-home --home / --user-group ptest" | ||