Merge pull request #1110 from edsantiago/more_testing_fixes
Various test-scaffolding fixes
This commit is contained in:
commit
e9200aacba
3 changed files with 18 additions and 12 deletions
|
@ -286,8 +286,8 @@ function start_crio() {
|
|||
}
|
||||
|
||||
function cleanup_ctrs() {
|
||||
run crictl ps --quiet
|
||||
if [ "$status" -eq 0 ]; then
|
||||
output=$(crictl ps --quiet)
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ "$output" != "" ]; then
|
||||
printf '%s\n' "$output" | while IFS= read -r line
|
||||
do
|
||||
|
@ -300,8 +300,8 @@ function cleanup_ctrs() {
|
|||
}
|
||||
|
||||
function cleanup_images() {
|
||||
run crictl images --quiet
|
||||
if [ "$status" -eq 0 ]; then
|
||||
output=$(crictl images --quiet)
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ "$output" != "" ]; then
|
||||
printf '%s\n' "$output" | while IFS= read -r line
|
||||
do
|
||||
|
@ -312,8 +312,8 @@ function cleanup_images() {
|
|||
}
|
||||
|
||||
function cleanup_pods() {
|
||||
run crictl sandboxes --quiet
|
||||
if [ "$status" -eq 0 ]; then
|
||||
output=$(crictl sandboxes --quiet)
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ "$output" != "" ]; then
|
||||
printf '%s\n' "$output" | while IFS= read -r line
|
||||
do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue