mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-27 20:45:56 +00:00
courier: Skip test if test/util/exitcode is not found
When building the Debian package, the tests are run in such a way that test/util/exitcode is not found, which causes them to fail. This patch is a workaround which skips the test if test/util/exitcode is not found; for now we should consider it temporary, until either the Debian packaging is fixed, or we decide that its environment is reasonably enough to make it permanent. :
This commit is contained in:
@@ -66,6 +66,13 @@ func TestProcmailBadCommandLine(t *testing.T) {
|
|||||||
// Test that local delivery failures are considered permanent or not
|
// Test that local delivery failures are considered permanent or not
|
||||||
// according to the exit code.
|
// according to the exit code.
|
||||||
func TestExitCode(t *testing.T) {
|
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 {
|
cases := []struct {
|
||||||
cmd string
|
cmd string
|
||||||
args []string
|
args []string
|
||||||
|
|||||||
Reference in New Issue
Block a user