local cnt=0
while :
do
- if [[ "${OS}" == "win" ]] ; then
- EM_VM_PID=`cmd //c tasklist | grep emulator-x86 | awk '{ print $2 }'`
- else
- EM_VM_PID=`ps aux | grep test | awk '{ print $2 "\t" $11 }' | grep emulator | awk '{ print $1 }'`
- fi
+ EM_VM_PID=`ps aux | grep test | awk '{ print $2 "\t" $11 }' | grep emulator | awk '{ print $1 }'`
if [[ -n "${EM_VM_PID}" ]] ; then
notify "emulator pid : '${EM_VM_PID}'"
kill -9 ${EM_VM_PID}
- cmd //c taskkill //PID ${EM_VM_PID} //T //F
printAndwait 10
elif [[ ! -n "${EM_VM_PID}" && ${cnt} -eq 0 ]] ; then
notify "emulator process kill success..."
local cnt=0
while :
do
- if [[ "${OS}" == "win" ]] ; then
- TIZEN_IDE_PID=`cmd //c tasklist | grep eclipse | awk '{ print $2 }'`
- else
- TIZEN_IDE_PID=`ps aux | grep test | awk '{ print $2 "\t" $11 }' | grep eclipse | awk '{ print $1 }'`
- fi
+ TIZEN_IDE_PID=`ps aux | grep test | awk '{ print $2 "\t" $11 }' | grep eclipse | awk '{ print $1 }'`
if [[ -n "${TIZEN_IDE_PID}" ]] ; then
notify "tizen ide pid : '${TIZEN_IDE_PID}'"
kill -9 ${TIZEN_IDE_PID}
- cmd //c taskkill //PID ${TIZEN_IDE_PID} //T //F
printAndwait 10
elif [[ ! -n "${TIZEN_IDE_PID}" && ${cnt} -eq 0 ]] ; then
notify "tizen ide process kill success..."
#### sikuli cmd
- if [[ "${OS}" == "win" ]] ; then
- SIKULI_CMD="cmd //c /c/sikuli/runIDE.cmd"
- else
- SIKULI_CMD="$SIKULI_PATH/runIDE"
- fi
+ SIKULI_CMD="/home/test/sikuli/runIDE"
notify "sikuli\tcmd : ${SIKULI_CMD}"
#### emulator manager cmd
- if [[ "${OS}" == "win" ]] ; then
- EM_CMD="java -jar ${TIZEN_SDK}/tools/emulator/bin/emulator-manager.jar"
- else
- EM_CMD="${TIZEN_SDK}/tools/emulator/bin/emulator-manager"
- if [ ! -f "${EM_CMD}" ] ; then
- return $RESULT
- fi
+ EM_CMD="${TIZEN_SDK}/tools/emulator/bin/emulator-manager"
+ if [ ! -f "${EM_CMD}" ] ; then
+ return $RESULT
fi
notify "emul\tcmd : ${EM_CMD}"