Use sync in provisioning tests

This commit is contained in:
Mauricio Poppe 2022-05-09 21:10:33 +00:00
parent 1234d061c0
commit 34f078d7f4

View File

@ -663,7 +663,7 @@ func InjectContent(f *framework.Framework, config TestConfig, fsGroup *int64, fs
// generateWriteCmd is used by generateWriteBlockCmd and generateWriteFileCmd
func generateWriteCmd(content, path string) []string {
var commands []string
commands = []string{"/bin/sh", "-c", "echo '" + content + "' > " + path}
commands = []string{"/bin/sh", "-c", "echo '" + content + "' > " + path + "; sync"}
return commands
}