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:
parent
f8e47181b0
commit
2462f93533
@ -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")
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user