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) {
if *benchArchiveDirectory == "" {
t.Skip("benchdir not set, skipping TestArchiverPreload")
}
be := setupBackend(t)
defer teardownBackend(t, be)
key := setupKey(t, be, "geheim")

View File

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