test: add restart ocid with pod stopped test

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-12-09 11:56:25 +01:00
parent d9edbe6817
commit f22dc5244f
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
2 changed files with 36 additions and 0 deletions

View file

@ -143,6 +143,16 @@ function stop_ocid() {
fi
}
function restart_ocid() {
if [ "$OCID_PID" != "" ]; then
kill "$OCID_PID" >/dev/null 2>&1
start_ocid
else
echo "you must start ocid first"
exit 1
fi
}
function cleanup_test() {
rm -rf "$TESTDIR"
}