Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jul 30, 2024
1 parent 46b38dd commit 2a190c3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions disk/disktest.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,13 @@ func ddTest2(blockFile, blockName, blockCount, bs string) string {
}
result += parseResultDD(tempText, blockCount)
// 清理缓存, 避免影响测试结果
syncCmd := exec.Command("sync")
err = syncCmd.Run()
if err != nil {
if EnableLoger {
Logger.Info("sync command failed: " + err.Error())
if testFilePath != "/tmp/" {
syncCmd := exec.Command("sync")
err = syncCmd.Run()
if err != nil {
if EnableLoger {
Logger.Info("sync command failed: " + err.Error())
}
}
}
// 读取测试
Expand Down

0 comments on commit 2a190c3

Please sign in to comment.