]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Mar 2019 23:20:06 +0000 (23:20 +0000)
commit4868de2e67bd304e41ac2158ccfcb166cfe16242
tree3ae52f6d3d475d08648112a671e6b05dc4ba47a6
parent6472261c7dba1ecc67d639d13b7cf04258f13c7c
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>
meta/recipes-core/glib-2.0/glib-2.0/run-ptest