diff options
author | Aditya Tayade <Aditya.Tayade@kpit.com> | 2019-03-25 15:27:11 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-04-13 12:39:12 -0700 |
commit | ca415c4250e32e9430a13b9edf7b308637ce597f (patch) | |
tree | a17f0395c15d158d6e19b8495952012323147d2f /meta | |
parent | 9088a78e78f70721b2aa6bdbdf055551d5bd0265 (diff) | |
download | openembedded-core-ca415c4250e32e9430a13b9edf7b308637ce597f.tar.gz openembedded-core-ca415c4250e32e9430a13b9edf7b308637ce597f.tar.bz2 openembedded-core-ca415c4250e32e9430a13b9edf7b308637ce597f.zip |
run-ptest: use error handling for useradd and userdel
Error handling in shell scripts is too easy to forget and
get wrong. It is possible to check every external command
for return values but it is better to use a generic setting
which halts execution of the script on any failures.
Upstream-Status: Pending
Signed-off-by: Aditya Tayade <Aditya.Tayade@kpit.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/run-ptest | 1 |
1 files changed, 1 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 5b85e8fabe..8f082d34f6 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,5 +1,6 @@ #! /bin/sh +set -eux useradd glib2-test su glib2-test -c gnome-desktop-testing-runner glib userdel glib2-test |