test: add restart ocid with pod stopped test
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
d9edbe6817
commit
f22dc5244f
2 changed files with 36 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue