~axwalk/juju-core/api-uniter-machine

« back to all changes in this revision

Viewing changes to cmd/charm-admin/config_test.go

[r=dave-cheney] testing: make RunCommand variadic

This change alters the testing.RunCommand helper to be variadic. In terms of LOC this is probably a net nil, but being variadic this removes the requirement to wrap arguments to this method in a []string{ ... }

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        args := []string{"--config", cfgPath}
64
64
        err = testing.InitCommand(config, args)
65
65
        c.Assert(err, gc.IsNil)
66
 
        _, err = testing.RunCommand(c, config, args)
 
66
        _, err = testing.RunCommand(c, config, args...)
67
67
        c.Assert(err, gc.IsNil)
68
68
 
69
69
        c.Assert(config.Config, gc.NotNil)