MCPcopy
hub / github.com/rclone/rclone / run

Function run

backend/archive/archive_internal_test.go:31–44  ·  view source on GitHub ↗

FIXME need to test Open with seek run - run a shell command

(t *testing.T, args ...string)

Source from the content-addressed store, hash-verified

29
30// run - run a shell command
31func run(t *testing.T, args ...string) {
32 cmd := exec.Command(args[0], args[1:]...)
33 fs.Debugf(nil, "run args = %v", args)
34 out, err := cmd.CombinedOutput()
35 if err != nil {
36 t.Fatalf(`
37----------------------------
38Failed to run %v: %v
39Command output was:
40%s
41----------------------------
42`, args, err, out)
43 }
44}
45
46// check the dst and src are identical
47func checkTree(ctx context.Context, name string, t *testing.T, dstArchive, src string, expectedCount int) {

Callers 3

testArchiveFunction · 0.70
TestArchiveZipFunction · 0.70
TestArchiveSquashfsFunction · 0.70

Calls 3

DebugfFunction · 0.92
FatalfMethod · 0.80
CommandMethod · 0.65

Tested by

no test coverage detected