Commit 208fbfe9 authored by Jing Xu's avatar Jing Xu

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
parent 2a05e1b7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment