From 208fbfe9755373e4e11cd9a2e4f23656e824600d Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Mon, 8 Apr 2019 16:10:36 -0700 Subject: [PATCH] Fix test failures in volume provisioning For windows, the command such as "mount" and "grep" do not work for windows node, this PR is fix the test issue by removing those commands and change it windows ones if the node OS is windows. Change-Id: I2428128ee407b611067b8e7c000dfff539d17309 --- test/e2e/storage/testsuites/provisioning.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/storage/testsuites/provisioning.go b/test/e2e/storage/testsuites/provisioning.go index e2cbc24ffd0..96da2b35e7a 100644 --- a/test/e2e/storage/testsuites/provisioning.go +++ b/test/e2e/storage/testsuites/provisioning.go @@ -373,6 +373,9 @@ func PVWriteReadSingleNodeCheck(client clientset.Interface, claim *v1.Persistent } command += " || (mount | grep 'on /mnt/test'; false)" + if framework.NodeOSDistroIs("windows") { + command = "select-string 'hello world' /mnt/test/data" + } RunInPodWithVolume(client, claim.Namespace, claim.Name, "pvc-volume-tester-reader", command, framework.NodeSelection{Name: actualNodeName}) return volume