Merge pull request #727 from tpeng/fix-scrapy-check-exitcode

set the exit code to non-zero when contracts fails
This commit is contained in:
Daniel Graña 2014-05-21 09:50:03 -04:00
commit 156d347c00
1 changed files with 1 additions and 0 deletions

View File

@ -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 = []