tests: reduce noise but make test.bash accept "-v"

This commit is contained in:
Jakob Unterwurzacher 2015-11-03 21:11:07 +01:00
parent 988e0a047c
commit b80167b39d
2 changed files with 6 additions and 4 deletions

View File

@ -319,7 +319,9 @@ func TestRmwRace(t *testing.T) {
}
*/
}
fmt.Println(goodMd5)
if testing.Verbose() {
fmt.Println(goodMd5)
}
}
func BenchmarkStreamWrite(t *testing.B) {
buf := make([]byte, 1024*1024)

View File

@ -1,9 +1,9 @@
#!/bin/bash
set -eux
set -eu
go build ./cryptfs
go test ./cryptfs
go test ./cryptfs $*
source build.bash
go test
go test $*