|
|
|
|
@ -845,12 +845,8 @@ func TestPlan_shutdown(t *testing.T) {
|
|
|
|
|
"-state=nonexistent.tfstate",
|
|
|
|
|
testFixturePath("apply-shutdown"),
|
|
|
|
|
})
|
|
|
|
|
if code != 0 {
|
|
|
|
|
// FIXME: In retrospect cancellation ought to be an unsuccessful exit
|
|
|
|
|
// case, but we need to do that cautiously in case it impacts automation
|
|
|
|
|
// wrappers. See the note about this in the terraform.stopHook
|
|
|
|
|
// implementation for more.
|
|
|
|
|
t.Errorf("wrong exit code %d; want 0\noutput:\n%s", code, ui.OutputWriter.String())
|
|
|
|
|
if code != 1 {
|
|
|
|
|
t.Errorf("wrong exit code %d; want 1\noutput:\n%s", code, ui.OutputWriter.String())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select {
|
|
|
|
|
|