Fix relative paths in integrations tests

This commit is contained in:
Fabian Wickborn 2016-02-23 09:21:50 +01:00
parent ee494ab939
commit 6005bd9833

View file

@ -724,7 +724,7 @@ func TestFind(t *testing.T) {
func TestRebuildIndex(t *testing.T) { func TestRebuildIndex(t *testing.T) {
withTestEnvironment(t, func(env *testEnvironment, global GlobalOptions) { withTestEnvironment(t, func(env *testEnvironment, global GlobalOptions) {
datafile := filepath.Join("..", "..", "checker", "testdata", "duplicate-packs-in-index-test-repo.tar.gz") datafile := filepath.Join("..", "..", "restic", "checker", "testdata", "duplicate-packs-in-index-test-repo.tar.gz")
SetupTarTestFixture(t, env.base, datafile) SetupTarTestFixture(t, env.base, datafile)
out := cmdCheckOutput(t, global) out := cmdCheckOutput(t, global)
@ -755,7 +755,7 @@ var optimizeTests = []struct {
snapshots backend.IDSet snapshots backend.IDSet
}{ }{
{ {
filepath.Join("..", "..", "checker", "testdata", "checker-test-repo.tar.gz"), filepath.Join("..", "..", "restic", "checker", "testdata", "checker-test-repo.tar.gz"),
backend.NewIDSet(ParseID("a13c11e582b77a693dd75ab4e3a3ba96538a056594a4b9076e4cacebe6e06d43")), backend.NewIDSet(ParseID("a13c11e582b77a693dd75ab4e3a3ba96538a056594a4b9076e4cacebe6e06d43")),
}, },
{ {