mirror of https://github.com/scrapy/scrapy.git
set the exit code to non-zero when contracts fails
This commit is contained in:
parent
2bf09b8a20
commit
b2ca3cf7e6
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue