mirror of
https://github.com/restic/restic.git
synced 2026-11-05 16:38:08 +00:00
Fix tests on freebsd
This commit is contained in:
1 parent
7e0a9aa565
commit
bd3ce5d4a3
4 files changed
+20
-6
No files matched your search
+1
-1
@@ -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