Fixups for crio_secrets.bats
Remove the directory named by "$MOUNT_PATH", not "MOUNT_PATH". Run "cat /proc/mounts" instead of "mount" in the test container. Run "grep" using the "run" helper when we want to capture its output. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
7ab9c55a12
commit
a467615423
1 changed files with 3 additions and 3 deletions
|
@ -20,14 +20,14 @@ function teardown() {
|
||||||
echo "$output"
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
ctr_id="$output"
|
ctr_id="$output"
|
||||||
run crioctl ctr execsync --id "$ctr_id" mount
|
run crioctl ctr execsync --id "$ctr_id" cat /proc/mounts
|
||||||
echo "$output"
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
mount_info="$output"
|
mount_info="$output"
|
||||||
grep /container/path1 <<< "$mount_info"
|
run grep /container/path1 <<< "$mount_info"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
rm -rf MOUNT_PATH
|
rm -rf ${MOUNT_PATH}
|
||||||
cleanup_ctrs
|
cleanup_ctrs
|
||||||
cleanup_pods
|
cleanup_pods
|
||||||
stop_crio
|
stop_crio
|
||||||
|
|
Loading…
Add table
Reference in a new issue