From a467615423bc3d181dc4f69b7b7c57324a82595e Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 24 Oct 2017 13:43:03 -0400 Subject: [PATCH] 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 --- test/crio_secrets.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/crio_secrets.bats b/test/crio_secrets.bats index 2f36d18d..5c737d77 100644 --- a/test/crio_secrets.bats +++ b/test/crio_secrets.bats @@ -20,14 +20,14 @@ function teardown() { echo "$output" [ "$status" -eq 0 ] ctr_id="$output" - run crioctl ctr execsync --id "$ctr_id" mount + run crioctl ctr execsync --id "$ctr_id" cat /proc/mounts echo "$output" [ "$status" -eq 0 ] mount_info="$output" - grep /container/path1 <<< "$mount_info" + run grep /container/path1 <<< "$mount_info" echo "$output" [ "$status" -eq 0 ] - rm -rf MOUNT_PATH + rm -rf ${MOUNT_PATH} cleanup_ctrs cleanup_pods stop_crio