aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-03-22 17:16:55 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-03-22 17:16:55 +0900
commit1c341e1b2421e4d7c0594978d001a3cd322da95c (patch)
treef90a8b2b27f5f8b5ea517707d184a34a19a2f2c1
parenta029a95c89512d1ce1b72a2e64cd59a09be118ba (diff)
downloadmeta-ivi-1c341e1b2421e4d7c0594978d001a3cd322da95c.tar.gz
meta-ivi-1c341e1b2421e4d7c0594978d001a3cd322da95c.tar.bz2
meta-ivi-1c341e1b2421e4d7c0594978d001a3cd322da95c.zip
node-state-manager: fix test script.
- no seg.fault during test - thanks Bogdan Popescu 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.inc8
1 files changed, 6 insertions, 2 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 8de5959..477145f 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
@@ -38,8 +38,11 @@ run_1() {
sleep 1
_setup_env
+ dbus-launch >& /tmp/d.pid
+ _dbus_pid=`grep BUS_PID /tmp/d.pid | awk -F= '{print $2}'`
+ sleep 1
/usr/bin/NodeStateManager >& /dev/null &
- sleep 2
+ sleep 4
if [ "x${1}" != "x" ]; then
_run_1 > /tmp/t 2> /tmp/t.err
@@ -56,9 +59,10 @@ run_1() {
_run_1 2> /tmp/t.err
fi
+ kill -9 ${_dbus_pid} >& /dev/null
_setup_env
rm -f ${_lib} ${_lib_2}
- cp ${_lib_bak} ${_lib}
+ mv ${_lib_bak} ${_lib}
ldconfig
}