Use sync in provisioning tests
This commit is contained in:
parent
1234d061c0
commit
34f078d7f4
@ -663,7 +663,7 @@ func InjectContent(f *framework.Framework, config TestConfig, fsGroup *int64, fs
|
|||||||
// generateWriteCmd is used by generateWriteBlockCmd and generateWriteFileCmd
|
// generateWriteCmd is used by generateWriteBlockCmd and generateWriteFileCmd
|
||||||
func generateWriteCmd(content, path string) []string {
|
func generateWriteCmd(content, path string) []string {
|
||||||
var commands []string
|
var commands []string
|
||||||
commands = []string{"/bin/sh", "-c", "echo '" + content + "' > " + path}
|
commands = []string{"/bin/sh", "-c", "echo '" + content + "' > " + path + "; sync"}
|
||||||
return commands
|
return commands
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user