From 766c6706c44cc9bfba085d4adb72b1f6ef275507 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Mon, 5 Apr 2021 09:25:45 -0400 Subject: [PATCH] Fix file mode condition for host_path storage test Signed-off-by: Davanum Srinivas --- test/e2e/common/storage/host_path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/common/storage/host_path.go b/test/e2e/common/storage/host_path.go index 81abbf73bd9..11e2f194e3e 100644 --- a/test/e2e/common/storage/host_path.go +++ b/test/e2e/common/storage/host_path.go @@ -56,8 +56,8 @@ var _ = SIGDescribe("HostPath", func() { fmt.Sprintf("--fs_type=%v", volumePath), fmt.Sprintf("--file_mode=%v", volumePath), } - f.TestContainerOutput("hostPath mode", pod, 0, []string{ - "mode of file \"/test-volume\": dtrwxrwx", // we expect the sticky bit (mode flag t) to be set for the dir + f.TestContainerOutputRegexp("hostPath mode", pod, 0, []string{ + "mode of file \"/test-volume\": dg?trwxrwx", // we expect the sticky bit (mode flag t) to be set for the dir }) })