summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorAditya Tayade <Aditya.Tayade@kpit.com>2019-03-25 15:27:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-22 00:31:48 +0100
commit6a6756f46a939ff6b70b6f7058fea25cb005a882 (patch)
tree706fd2731943dfb9ee196b2235ebe0ad7e79e375 /meta/recipes-core
parentfe415144db8eb00fbb407888c9c76b1fea2d8127 (diff)
downloadpoky-6a6756f46a939ff6b70b6f7058fea25cb005a882.tar.gz
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 (From OE-Core rev: ca415c4250e32e9430a13b9edf7b308637ce597f) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0/run-ptest1
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 @@
1#! /bin/sh 1#! /bin/sh
2 2
3set -eux
3useradd glib2-test 4useradd glib2-test
4su glib2-test -c gnome-desktop-testing-runner glib 5su glib2-test -c gnome-desktop-testing-runner glib
5userdel glib2-test 6userdel glib2-test