From 3c3f85295cdfe012ba8f994964f51fa485a76404 Mon Sep 17 00:00:00 2001 From: Masaki Kimura Date: Thu, 29 Nov 2018 20:21:16 +0000 Subject: [PATCH] Improve output of fsType check for failure case in volumes test --- test/e2e/framework/volume_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/volume_util.go b/test/e2e/framework/volume_util.go index e4344471417..3687c22960f 100644 --- a/test/e2e/framework/volume_util.go +++ b/test/e2e/framework/volume_util.go @@ -479,7 +479,7 @@ func TestVolumeClient(client clientset.Interface, config VolumeTestConfig, fsGro if fsType != "" { By("Checking fsType is correct.") - _, err = LookForStringInPodExec(config.Namespace, clientPod.Name, []string{"grep", fmt.Sprintf(" /opt/0 %s", fsType), "/proc/mounts"}, fsType, time.Minute) + _, err = LookForStringInPodExec(config.Namespace, clientPod.Name, []string{"grep", " /opt/0 ", "/proc/mounts"}, fsType, time.Minute) Expect(err).NotTo(HaveOccurred(), "failed: getting the right fsType %s", fsType) } }