fix(cli): honor local installation discovery precedence
This commit is contained in:
@@ -90,7 +90,15 @@ func TestBootstrapCommandsDoNotRequireAnInstallationDescriptor(t *testing.T) {
|
||||
})
|
||||
t.Setenv("THOTHII_INSTALLATION", "")
|
||||
|
||||
for _, args := range [][]string{nil, {"help"}, {"version"}, {"setup"}} {
|
||||
for _, args := range [][]string{
|
||||
nil,
|
||||
{"help"},
|
||||
{"help", "pi"},
|
||||
{"version"},
|
||||
{"version", "--json"},
|
||||
{"setup"},
|
||||
{"setup", "--configure-only"},
|
||||
} {
|
||||
var stdout, stderr bytes.Buffer
|
||||
_ = run(context.Background(), args, &stdout, &stderr)
|
||||
if output := stdout.String() + stderr.String(); strings.Contains(output, "installation descriptor") {
|
||||
|
||||
Reference in New Issue
Block a user