diff --git a/t/t.go b/t/t.go index fb36014e5fb..6994d410aa0 100644 --- a/t/t.go +++ b/t/t.go @@ -100,9 +100,12 @@ func commandWithContext(ctx context.Context, args ...string) *exec.Cmd { // command takes a list of args and executes them as a program. // Example: -// docker-compose up -f "./my docker compose.yml" +// +// docker-compose up -f "./my docker compose.yml" +// // would become: -// command("docker-compose", "up", "-f", "./my docker compose.yml") +// +// command("docker-compose", "up", "-f", "./my docker compose.yml") func command(args ...string) *exec.Cmd { return commandWithContext(ctxb, args...) } @@ -503,7 +506,7 @@ func getPackages() []task { var valid []task for _, pkg := range pkgs { - if len(*runPkg) > 0 && !strings.HasSuffix(pkg.ID, *runPkg) { + if len(*runPkg) > 0 && !strings.HasSuffix(pkg.ID, "/"+*runPkg) { continue }