forked from TrueCloudLab/restic
Disable Tests when benchdir is unset
This commit is contained in:
parent
f8e47181b0
commit
2462f93533
2 changed files with 8 additions and 0 deletions
|
@ -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 a new issue