set the exit code to non-zero when contracts fails

This commit is contained in:
tpeng 2014-05-20 17:04:40 +02:00
parent 2bf09b8a20
commit b2ca3cf7e6
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 = []