aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-08-24 21:55:24 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-08-24 21:55:24 +0900
commit402759564a85dc5b4e920c6b626f0476a9a7d07f (patch)
tree85f57a37a5d80971a8be42d8929c3e86e07895a6
parent128b78dbf19ddb013170d6f0889a2606131a0b80 (diff)
downloadmeta-ivi-402759564a85dc5b4e920c6b626f0476a9a7d07f.tar.gz
meta-ivi-402759564a85dc5b4e920c6b626f0476a9a7d07f.tar.bz2
meta-ivi-402759564a85dc5b4e920c6b626f0476a9a7d07f.zip
node-state-manager: fix test script
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--meta-ivi-test/recipes-extended/node-state-manager/node-state-manager/node-state-manager_t.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta-ivi-test/recipes-extended/node-state-manager/node-state-manager/node-state-manager_t.inc b/meta-ivi-test/recipes-extended/node-state-manager/node-state-manager/node-state-manager_t.inc
index 477145f..e028f05 100644
--- a/meta-ivi-test/recipes-extended/node-state-manager/node-state-manager/node-state-manager_t.inc
+++ b/meta-ivi-test/recipes-extended/node-state-manager/node-state-manager/node-state-manager_t.inc
@@ -12,16 +12,16 @@ _run_1() {
${_run_dir}/NodeStateTest
}
-_setup_env() {
+stop_NSM() {
systemctl stop node-startup-controller
_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
- kill -9 ${_p} >& /dev/null
+ kill -9 ${_p}
fi
}
@@ -37,7 +37,9 @@ run_1() {
ldconfig
sleep 1
- _setup_env
+ systemctl start dbus
+ systemctl start dlt
+ stop_NSM >& /dev/null
dbus-launch >& /tmp/d.pid
_dbus_pid=`grep BUS_PID /tmp/d.pid | awk -F= '{print $2}'`
sleep 1
@@ -60,7 +62,8 @@ run_1() {
fi
kill -9 ${_dbus_pid} >& /dev/null
- _setup_env
+ stop_NSM >& /dev/null
+ systemctl stop dlt
rm -f ${_lib} ${_lib_2}
mv ${_lib_bak} ${_lib}