mirror of https://github.com/apache/druid.git
Debugs Flaky License dependency Reports generation (#12744)
* Surfaces mvn command output in case of failure. * formats output * nit
This commit is contained in:
parent
864b77e91a
commit
32946216d0
|
@ -38,6 +38,9 @@ def generate_report(module_path, report_orig_path, report_out_path):
|
|||
command = "cp -r {} {}".format(report_orig_path, report_out_path)
|
||||
subprocess.check_output(command, cwd=module_path, shell=True)
|
||||
print("Generated report for {} in {}".format(module_path, report_out_path))
|
||||
except subprocess.CalledProcessError as e:
|
||||
print("Encountered error [{}] with the following output when generating report for {}".format(e, module_path))
|
||||
print(e.output.decode('utf-8'))
|
||||
except Exception as e:
|
||||
print("Encountered error [{}] when generating report for {}".format(e, module_path))
|
||||
|
||||
|
|
Loading…
Reference in New Issue