author | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-11-20 18:30:30 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-11-20 18:30:30 UTC |
parent | db130639c240a53d732890d8b1de8b64d5f9723d |
internal/courier/procmail_test.go | +7 | -0 |
diff --git a/internal/courier/procmail_test.go b/internal/courier/procmail_test.go index a6fc4ea..0668a36 100644 --- a/internal/courier/procmail_test.go +++ b/internal/courier/procmail_test.go @@ -66,6 +66,13 @@ func TestProcmailBadCommandLine(t *testing.T) { // Test that local delivery failures are considered permanent or not // according to the exit code. func TestExitCode(t *testing.T) { + // TODO: This can happen when building under unusual circumstances, such + // as Debian package building. Are they reasonable enough for us to keep + // this? + if _, err := os.Stat("../../test/util/exitcode"); os.IsNotExist(err) { + t.Skipf("util/exitcode not found, running from outside repo?") + } + cases := []struct { cmd string args []string