提交 b2ca3cf7 编写于 作者: T tpeng

set the exit code to non-zero when contracts fails

上级 2bf09b8a
......@@ -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 = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册