提交 f5395cec 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!6 continue if require package install fail

Merge pull request !6 from ltx/master
......@@ -187,9 +187,8 @@ class Job(object):
self.create_test_suite(self.subtests_filter)
if not self.check_test_depends():
print("Required rpm package not installed, test stopped.")
logger.stop()
return
self.run_tests(self.subtests_filter)
else:
self.run_tests(self.subtests_filter)
self.save_result()
logger.stop()
self.show_summary()
......
......@@ -128,6 +128,8 @@ def get_attachment(host, id, job):
def get_log(host, id, job, name):
dir_job = os.path.join(dir_results, host, id, job)
logpath = os.path.join(dir_job, name + '.log')
if not os.path.exists(logpath):
logpath = os.path.join(dir_job, 'job.log')
try:
with open(logpath, 'r') as f:
log = f.read().split('\n')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册