Make blorg tests more verbose

By not combining all files into one md5sum.
This commit is contained in:
Elliott Sales de Andrade 2022-02-27 15:44:52 -05:00
parent 2a85f587d3
commit 1122a3dfbc
2 changed files with 11 additions and 2 deletions

View file

@ -23,7 +23,7 @@ func TestBlorg(t *testing.T) {
t.Errorf("Could not render: %s", err)
return
}
renderedHashBs, err := exec.Command("bash", "-c", fmt.Sprintf("find %s -type f | sort -u | xargs cat | md5sum", config.PublicDir)).Output()
renderedHashBs, err := exec.Command("bash", "-c", fmt.Sprintf("find %s -type f | sort -u | xargs md5sum", config.PublicDir)).Output()
if err != nil {
t.Errorf("Could not hash PublicDir: %s", err)
return