aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-08-24 21:55:49 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-08-24 21:55:49 +0900
commit8192c871d41d717d36158101d5a2076ed40b334b (patch)
treefb91611c6a68ab99f765f8478e4372b4817464b7
parent402759564a85dc5b4e920c6b626f0476a9a7d07f (diff)
downloadmeta-ivi-8192c871d41d717d36158101d5a2076ed40b334b.tar.gz
meta-ivi-8192c871d41d717d36158101d5a2076ed40b334b.tar.bz2
meta-ivi-8192c871d41d717d36158101d5a2076ed40b334b.zip
persistence-administrator: fix test scriptO-0.2
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc22
1 files changed, 17 insertions, 5 deletions
diff --git a/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
index bd356d5..9113c41 100644
--- a/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
+++ b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
@@ -13,18 +13,30 @@ _run_1() {
${_run_dir}/pers_admin_test_framework
}
-run_1() {
+start_NSM() {
+ systemctl start dbus
+ systemctl start dlt
systemctl start dlt-dbus
+ sleep 1
+ /usr/bin/NodeStateManager >& /dev/null &
+ sleep 4
+}
+
+stop_NSM() {
_p=`pidof NodeStateManager`
if [ "x${_p}" != "x" ]; then
- kill -9 ${_p} >& /dev/null
+ kill -9 ${_p}
fi
_p=`pidof nsm-dummy`
if [ "x${_p}" != "x" ]; then
systemctl stop nsm-dummy
- kill -9 ${_p} >& /dev/null
+ kill -9 ${_p}
fi
- systemctl stop node-startup-controller
+ systemctl stop dlt-dbus
+}
+
+run_1() {
+ start_NSM
systemctl start node-startup-controller
if [ ! -d /tmp/PAS ]; then
rm -f /tmp/PAS
@@ -49,5 +61,5 @@ run_1() {
fi
systemctl stop pas-daemon
systemctl stop node-startup-controller
- systemctl stop dlt-dbus
+ stop_NSM >& /dev/null
}