aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-07-07 21:27:15 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-07-07 23:43:45 +0900
commitd1b31355f97b7488f9e3f07c611ecd1cb29b26f2 (patch)
tree911849cffefaf1433ed5739d011fd41979183485
parent4c1871b3f2da59f0a2927f855134d647877bed71 (diff)
downloadmeta-ivi-d1b31355f97b7488f9e3f07c611ecd1cb29b26f2.tar.gz
meta-ivi-d1b31355f97b7488f9e3f07c611ecd1cb29b26f2.tar.bz2
meta-ivi-d1b31355f97b7488f9e3f07c611ecd1cb29b26f2.zip
persistence-administrator: testscript fixO-0.1
- use node-state-manger instead of nsm-dummy because nsm-dummy is dead when testing. 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.inc26
1 files changed, 13 insertions, 13 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 8978fa1..bd356d5 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
@@ -1,4 +1,4 @@
-roo#!/bin/sh
+#!/bin/sh
get_list() {
return 1
}
@@ -15,15 +15,17 @@ _run_1() {
run_1() {
systemctl start dlt-dbus
- _p=`pidof NodeStateManager`
- if [ "x${_p}" != "x" ]; then
- kill -9 ${_p} >& /dev/null
- fi
- systemctl stop nsm-dummy
+ _p=`pidof NodeStateManager`
+ if [ "x${_p}" != "x" ]; then
+ kill -9 ${_p} >& /dev/null
+ fi
+ _p=`pidof nsm-dummy`
+ if [ "x${_p}" != "x" ]; then
+ systemctl stop nsm-dummy
+ kill -9 ${_p} >& /dev/null
+ fi
systemctl stop node-startup-controller
- systemctl stop nsm-dummy
systemctl start node-startup-controller
- systemctl start nsm-dummy
if [ ! -d /tmp/PAS ]; then
rm -f /tmp/PAS
mkdir -p /tmp/PAS
@@ -45,9 +47,7 @@ run_1() {
else
_run_1
fi
- systemctl stop pas-daemon
- systemctl stop nsm-dummy
- systemctl stop node-startup-controller
- systemctl stop nsm-dummy
- systemctl stop dlt-dbus
+ systemctl stop pas-daemon
+ systemctl stop node-startup-controller
+ systemctl stop dlt-dbus
}