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 f1f6b4c commit b1e6cb5
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions disk/disktest.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ func ddTest2(blockFile, blockName, blockCount, bs string) string {
}
result += parseResultDD(tempText, blockCount)
// 清理缓存, 避免影响测试结果
// if testFilePath == "/tmp/" {
// 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())
}
}
}
// 读取测试
if EnableLoger {
Logger.Info("Path:" + testFilePath)
Expand All @@ -191,6 +191,9 @@ func ddTest2(blockFile, blockName, blockCount, bs string) string {
}
}
}
if EnableLoger {
Logger.Info("Read Text:" + tempText)
}
result += parseResultDD(tempText, blockCount)
result += "\n"
return result
Expand Down

0 comments on commit b1e6cb5

Please sign in to comment.