aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-04-14 14:07:26 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-04-14 14:07:26 +0900
commit959dfa43862d496c26600fe7dacb4139fc7a592d (patch)
tree2d53ea724f8a3dd6729b56b38781f71f5c4685e1
parent76bfd116bdb905370fd6a7de6d8e6e9e4d659a90 (diff)
downloadmeta-ivi-959dfa43862d496c26600fe7dacb4139fc7a592d.tar.gz
meta-ivi-959dfa43862d496c26600fe7dacb4139fc7a592d.tar.bz2
meta-ivi-959dfa43862d496c26600fe7dacb4139fc7a592d.zip
persistence-client-library: fix test script
- to test it, 1. mount persistent partition to /Data/mnt-c, /Data/mnt-wt 2. run node-state-manager 3. run pas daemon 4. install PAS_data.tar.gz if it ended with "... returned <<-1310719>>]", installation is failed. back to 2. if it ended with "... returned <<108>>]", go on. 5. run PCL test 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.inc22
1 files changed, 14 insertions, 8 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 bac7e29..7d665fa 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
@@ -10,23 +10,29 @@ get_title() {
_run_dir=/opt/tests/persistence-client-library
_setup_env() {
- _p=`pidof NodeStateManager`
- if [ "x${_p}" != "x" ]; then
- kill -9 ${_p} >& /dev/null
- fi
_p=`pidof nsm-dummy`
if [ "x${_p}" != "x" ]; then
kill -9 ${_p} >& /dev/null
+ sleep 1
+ fi
+ if [ ! -d /Data/tmp ]; then
+ rm -f /Data/tmp >& /dev/null
+ mkdir /Data/tmp
+ fi
+ _m=`mount | grep /Data/mnt-c`
+ if [ "x${_m}" == "x" ]; then
+ mount -o bind /Data/tmp /Data/mnt-c
+ mount -o bind /Data/tmp /Data/mnt-wt
fi
- sleep 2
- systemctl restart pas-daemon
systemctl restart nodestatemanager-daemon
+ systemctl restart pas-daemon
+ sleep 2
if [ ! -e /tmp/myBackup ]; then
mkdir /tmp/myBackup
fi
- if [ ! -e /Data/mnt-wt/lt-persistence_client_library_test/ ]; then
- persadmin_tool install /Data/mnt-backup/PAS_data.tar.gz > /tmp/t
+ if [ ! -e /Data/mnt-wt/pfs_test/ ]; then
+ persadmin_tool install /Data/mnt-backup/PAS_data.tar.gz > /tmp/t.2
fi
}