Scrapy, a fast high-level web crawling & scraping framework for Python.
set the exit code to non-zero when contracts fails
tpengb2ca3cf7e661
diff --git a/scrapy/commands/check.py b/scrapy/commands/check.pyindex 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 1def get_requests(self, spider):requests = []