aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-09-23 10:41:25 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-09-23 10:41:25 +0900
commit885384dde3cd5d08c29d58fa28874e1766a3f9ed (patch)
tree167908d70f6cb4388fe27619b5add2fffc6da13a /meta-ivi-test
parent472bc942730fed17d4996365c4be50717f130aa3 (diff)
downloadmeta-ivi-885384dde3cd5d08c29d58fa28874e1766a3f9ed.tar.gz
meta-ivi-885384dde3cd5d08c29d58fa28874e1766a3f9ed.tar.bz2
meta-ivi-885384dde3cd5d08c29d58fa28874e1766a3f9ed.zip
persistence-client-library: fix test script
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Diffstat (limited to 'meta-ivi-test')
-rw-r--r--meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/persistence-client-library_t.inc20
1 files changed, 15 insertions, 5 deletions
diff --git a/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/persistence-client-library_t.inc b/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/persistence-client-library_t.inc
index 825fa32..d39149c 100644
--- a/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/persistence-client-library_t.inc
+++ b/meta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/persistence-client-library_t.inc
@@ -13,11 +13,22 @@ _run_1() {
${_run_dir}/persistence_client_library_test
}
+_setup_env() {
+ _p=`pidof NodeStateManager`
+ if [ "x${_p}" != "x" ]; then
+ kill -9 ${_p} >& /dev/null
+ fi
+ _p=`pidof nsm-dummy`
+ if [ "x${_p}" != "x" ]; then
+ kill -9 ${_p} >& /dev/null
+ fi
+
+ systemctl restart pas-daemon
+}
+
run_1() {
- #systemctl restart dlt-dbus
- #systemctl restart dlt-example-user
- #systemctl restart pas-daemon
- #systemctl restart node-startup-controller
+ _setup_env
+
if [ "x${1}" != "x" ]; then
_run_1 > /tmp/t
_c1=`cat /tmp/t | grep :P: | wc -l`
@@ -32,5 +43,4 @@ run_1() {
else
_run_1
fi
- killall -9 nsm-dummy
}