Skip to content

Commit 11e5eda

Browse files
Always ask before saving/pushing Cobertura reports, in case the tests failed
1 parent 0cabab7 commit 11e5eda

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

testing/bin/coverage

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,16 @@ def main():
128128
# Run against the entire integration suite
129129
execute('%s' % cobertura_build_command)
130130

131-
# Save out cobertura site files
132-
save_cobertura_site()
131+
try:
132+
if raw_input("Save Cobertura Report? [y/N] ").lower() == 'y':
133133

134-
# Perhaps move cobertura site files to a central location
135-
maybe_upload_cobertura_site()
134+
# Save out cobertura site files
135+
save_cobertura_site()
136+
137+
# Perhaps move cobertura site files to a central location
138+
maybe_upload_cobertura_site()
139+
except KeyboardInterrupt:
140+
print
136141

137142
# Optionally, open coverage report when done building
138143
if read_config('general', 'open_cobertura_site_after_build', 'boolean'):

0 commit comments

Comments
 (0)