Fix tests on freebsd

This commit is contained in:
Alexander Neumann
2015-07-20 21:02:38 +02:00
parent 7e0a9aa565
commit bd3ce5d4a3
4 changed files with 20 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ func RandomReader(seed, size int) *bytes.Reader {
// SetupTarTestFixture extracts the tarFile to outputDir.
func SetupTarTestFixture(t testing.TB, outputDir, tarFile string) {
err := System("sh", "-c", `(cd "$1" && tar xz) < "$2"`,
err := System("sh", "-c", `(cd "$1" && tar xzf - ) < "$2"`,
"sh", outputDir, tarFile)
OK(t, err)
}