mirror of
https://github.com/octoleo/restic.git
synced 2024-12-26 20:30:19 +00:00
Disable Tests when benchdir is unset
This commit is contained in:
parent
f8e47181b0
commit
2462f93533
@ -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")
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user