Use native configuration validation and diagnostics
This commit is contained in:
@@ -41,7 +41,7 @@ func TestRunOverlaySelectionFlowsThroughSharedLoader(t *testing.T) {
|
||||
|
||||
for _, overlay := range []string{"unknown"} {
|
||||
err := invokeNativeCommandWith(context.Background(), []string{"run", "2026-05-03", "--config", pipelinePath, "--campaign-file", campaignPath, "--session-file", sessionPath, "--overlay", overlay}, io.Discard, executor, commandDependencies{})
|
||||
if err == nil || !strings.Contains(err.Error(), "overlay") {
|
||||
if err == nil || !strings.Contains(configurationErrorText(err), "overlay") {
|
||||
t.Fatalf("overlay %q error = %v, want selection rejection", overlay, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user