aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-08-30 16:50:51 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-08-30 16:50:51 +0900
commit8b463446a48df72331ba38c040404bd78f522e95 (patch)
treebbac828902dad6a6ee3020f6f7ab386ac3462f4c
parent8192c871d41d717d36158101d5a2076ed40b334b (diff)
downloadmeta-ivi-8b463446a48df72331ba38c040404bd78f522e95.tar.gz
meta-ivi-8b463446a48df72331ba38c040404bd78f522e95.tar.bz2
meta-ivi-8b463446a48df72331ba38c040404bd78f522e95.zip
persistence-client-library: fix test scripts
Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rwxr-xr-xmeta-ivi-test/recipes-extended/persistence-client-library/persistence-client-library/persistence-client-library_t.inc26
1 files changed, 22 insertions, 4 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 9ff6bc7..cb9064d 100755
--- 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
@@ -9,12 +9,30 @@ get_title() {
_run_dir=/opt/tests/persistence-client-library
-_setup_env() {
+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}
+ fi
_p=`pidof nsm-dummy`
if [ "x${_p}" != "x" ]; then
- kill -9 ${_p} >& /dev/null
- sleep 1
+ systemctl stop nsm-dummy
+ kill -9 ${_p}
fi
+ systemctl stop dlt-dbus
+}
+
+_setup_env() {
+ stop_NSM
if [ ! -d /Data/tmp ]; then
rm -f /Data/tmp >& /dev/null
mkdir /Data/tmp
@@ -24,7 +42,7 @@ _setup_env() {
mount -o bind /Data/tmp /Data/mnt-c
mount -o bind /Data/tmp /Data/mnt-wt
fi
- systemctl restart nodestatemanager-daemon
+ start_NSM
systemctl restart pas-daemon
sleep 2