Skip to content

Commit 10d9ab9

Browse files
authored
style: Print coverage return codes in verbose mode (#3190)
1 parent 5e75007 commit 10d9ab9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/private/python_bootstrap_template.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ source =
457457
env=env,
458458
cwd=workspace
459459
)
460+
PrintVerboseCoverage('Return code of coverage run:', ret_code)
460461
output_filename = os.path.join(os.environ['COVERAGE_DIR'], 'pylcov.dat')
461462

462463
PrintVerboseCoverage('Converting coveragepy database to lcov:', output_filename)
@@ -470,10 +471,12 @@ source =
470471
kparams['stdout'] = sys.stderr
471472
kparams['stderr'] = sys.stderr
472473

473-
ret_code = subprocess.call(
474+
lcov_ret_code = subprocess.call(
474475
params,
475476
**kparams
476-
) or ret_code
477+
)
478+
PrintVerboseCoverage('Return code of coverage lcov:', lcov_ret_code)
479+
ret_code = lcov_ret_code or ret_code
477480

478481
try:
479482
os.unlink(rcfile_name)

0 commit comments

Comments
 (0)