2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-29 16:23:59 +00:00

Disable Tests when benchdir is unset

This commit is contained in:
Alexander Neumann 2015-02-17 23:40:37 +01:00
parent f8e47181b0
commit 2462f93533
2 changed files with 8 additions and 0 deletions

View File

@ -166,6 +166,10 @@ func countBlobs(t *testing.T, server restic.Server) int {
} }
func TestArchiverPreload(t *testing.T) { func TestArchiverPreload(t *testing.T) {
if *benchArchiveDirectory == "" {
t.Skip("benchdir not set, skipping TestArchiverPreload")
}
be := setupBackend(t) be := setupBackend(t)
defer teardownBackend(t, be) defer teardownBackend(t, be)
key := setupKey(t, be, "geheim") key := setupKey(t, be, "geheim")

View File

@ -125,6 +125,10 @@ func BenchmarkSaveFrom(t *testing.B) {
} }
func TestServerStats(t *testing.T) { func TestServerStats(t *testing.T) {
if *benchArchiveDirectory == "" {
t.Skip("benchdir not set, skipping TestServerStats")
}
be := setupBackend(t) be := setupBackend(t)
defer teardownBackend(t, be) defer teardownBackend(t, be)
key := setupKey(t, be, "geheim") key := setupKey(t, be, "geheim")