]> code.ossystems Code Review - openembedded-core.git/commit
run-ptest: use error handling for useradd and userdel
authorAditya Tayade <Aditya.Tayade@kpit.com>
Mon, 25 Mar 2019 15:27:11 +0000 (15:27 +0000)
committerArmin Kuster <akuster808@gmail.com>
Sat, 13 Apr 2019 19:39:12 +0000 (12:39 -0700)
commitca415c4250e32e9430a13b9edf7b308637ce597f
treea17f0395c15d158d6e19b8495952012323147d2f
parent9088a78e78f70721b2aa6bdbdf055551d5bd0265
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>
meta/recipes-core/glib-2.0/glib-2.0/run-ptest