@@ -57,7 +57,8 @@ def build_pillar_data(options):
57
57
Build a YAML formatted string to properly pass pillar data
58
58
'''
59
59
pillar = {'test_transport' : options .test_transport ,
60
- 'cloud_only' : options .cloud_only }
60
+ 'cloud_only' : options .cloud_only ,
61
+ 'with_coverage' : options .test_without_coverage is False }
61
62
if options .test_git_commit is not None :
62
63
pillar ['test_git_commit' ] = options .test_git_commit
63
64
if options .test_git_url is not None :
@@ -371,7 +372,8 @@ def run(opts):
371
372
)
372
373
373
374
if opts .download_remote_reports :
374
- opts .download_coverage_report = vm_name
375
+ if opts .test_without_coverage is False :
376
+ opts .download_coverage_report = vm_name
375
377
opts .download_unittest_reports = vm_name
376
378
opts .download_packages = vm_name
377
379
@@ -773,7 +775,8 @@ def run(opts):
773
775
# Download unittest reports
774
776
download_unittest_reports (opts )
775
777
# Download coverage report
776
- download_coverage_report (opts )
778
+ if opts .test_without_coverage is False :
779
+ download_coverage_report (opts )
777
780
778
781
if opts .clean and 'JENKINS_SALTCLOUD_VM_NAME' not in os .environ :
779
782
delete_vm (opts )
@@ -829,6 +832,12 @@ def parse():
829
832
default = 'zeromq' ,
830
833
choices = ('zeromq' , 'raet' ),
831
834
help = 'Set to raet to run integration tests with raet transport. Default: %default' )
835
+ parser .add_option (
836
+ '--test-without-coverage' ,
837
+ default = False ,
838
+ action = 'store_true' ,
839
+ help = 'Do not generate coverage reports'
840
+ )
832
841
parser .add_option (
833
842
'--prep-sls' ,
834
843
default = 'git.salt' ,
@@ -943,9 +952,10 @@ def parse():
943
952
download_unittest_reports (options )
944
953
parser .exit (0 )
945
954
946
- if options .download_coverage_report is not None and not options .test_git_commit :
947
- download_coverage_report (options )
948
- parser .exit (0 )
955
+ if options .test_without_coverage is False :
956
+ if options .download_coverage_report is not None and not options .test_git_commit :
957
+ download_coverage_report (options )
958
+ parser .exit (0 )
949
959
950
960
if options .download_remote_logs is not None and not options .test_git_commit :
951
961
download_remote_logs (options )
0 commit comments