Hand checked processing selections to execution
This commit is contained in:
@@ -1206,6 +1206,20 @@ func TestSubprocessInfeasibleSectionTargetIsAnInputFailure(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSubprocessUnknownProfileFailsBeforeModelDispatchAndOutput(t *testing.T) {
|
||||
f := newProcessFixture(t, "normal", "[grammar]")
|
||||
code, stdout, stderr := f.run(t, true, "--proposal-profile", "unknown")
|
||||
if code != 2 || stdout != "" || f.provider.callCount() != 0 ||
|
||||
!strings.Contains(stderr, "stage 1 (grammar) proposal profile") || !strings.Contains(stderr, "unknown") {
|
||||
t.Fatalf("readiness: code=%d stdout=%q stderr=%q calls=%d", code, stdout, stderr, f.provider.callCount())
|
||||
}
|
||||
for _, path := range []string{f.output, filepath.Join(f.dir, "errors.yml")} {
|
||||
if _, err := os.Stat(path); !os.IsNotExist(err) {
|
||||
t.Fatalf("unexpected output at %s: %v", path, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestSubprocessOutputPermissionsHonorUmask(t *testing.T) {
|
||||
for _, mask := range []string{"0077", "0022"} {
|
||||
t.Run(mask, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user