change run* functions to accept ui.Terminal instead of *termstatus.Terminal

This commit is contained in:
Michael Eischer committed 2025-09-15 22:37:25 +02:00
1 parent 5a16b29177
commit 6b5c8ce14e
53 files changed
+113 -122

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ import (
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/restic"
rtest "github.com/restic/restic/internal/test"
"github.com/restic/restic/internal/ui/termstatus"
"github.com/restic/restic/internal/ui"
)
const (
@@ -62,7 +62,7 @@ func testRunMount(t testing.TB, gopts GlobalOptions, dir string, wg *sync.WaitGr
opts := MountOptions{
TimeTemplate: time.RFC3339,
}
rtest.OK(t, withTermStatus(gopts, func(ctx context.Context, term *termstatus.Terminal) error {
rtest.OK(t, withTermStatus(gopts, func(ctx context.Context, term ui.Terminal) error {
return runMount(context.TODO(), opts, gopts, []string{dir}, term)
}))
}