34
34
// charm or bundle. The deployment output and error are returned.
35
35
func runDeployCommand(c *gc.C, id string, args ...string) (string, error) {
36
36
args = append([]string{id}, args...)
37
ctx, err := coretesting.RunCommand(c, NewDeployCommand(), args...)
37
ctx, err := coretesting.RunCommand(c, NewDefaultDeployCommand(), args...)
38
38
return strings.Trim(coretesting.Stderr(ctx), "\n"), err