mirror of
https://github.com/restic/restic.git
synced 2025-08-24 16:27:30 +00:00
Fix tests on freebsd
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user