From b2ca3cf7e6610bf0f3c6ac5aa79c3322c276c439 Mon Sep 17 00:00:00 2001 From: tpeng Date: Tue, 20 May 2014 17:04:40 +0200 Subject: [PATCH] set the exit code to non-zero when contracts fails --- scrapy/commands/check.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scrapy/commands/check.py b/scrapy/commands/check.py index c69700215..7287aae98 100644 --- a/scrapy/commands/check.py +++ b/scrapy/commands/check.py @@ -71,6 +71,7 @@ class Command(ScrapyCommand): else: self.crawler_process.start() self.results.printErrors() + self.exitcode = 0 if self.results.wasSuccessful() else 1 def get_requests(self, spider): requests = [] -- GitLab