new sub-option for backup: time

New option to specify the timestamp for a backup
This commit is contained in:
Tobias Klein committed 2017-09-09 13:26:35 +02:00
1 parent 5c75a98053
commit 43ff971dfd
6 files changed
+19 -8

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ func TestCreateSnapshot(t testing.TB, repo Repository, at time.Time, depth int,
t.Logf("create fake snapshot at %s with seed %d", at, seed)
fakedir := fmt.Sprintf("fakedir-at-%v", at.Format("2006-01-02 15:04:05"))
snapshot, err := NewSnapshot([]string{fakedir}, []string{"test"}, "foo")
snapshot, err := NewSnapshot([]string{fakedir}, []string{"test"}, "foo", time.Now())
if err != nil {
t.Fatal(err)
}