@@ -1221,31 +1221,31 @@ def python_coverage(args):
1221
1221
parser .add_argument ('--truffle-upload-url' , help = 'Format is like rsync: user@host:/directory' , default = None )
1222
1222
args = parser .parse_args (args )
1223
1223
1224
- if args .jacoco :
1225
- jacoco_args = [
1226
- '--jacoco-whitelist-package' , 'com.oracle.graal.python' ,
1227
- # '--jacoco-exclude-annotation', '@GeneratedBy',
1228
- ]
1229
- mx .run_mx (jacoco_args + [
1230
- '--strict-compliance' ,
1231
- '--dynamicimports' , '/compiler' ,
1232
- '--primary' , 'gate' ,
1233
- '-B=--force-deprecation-as-warning-for-dependencies' ,
1234
- '--strict-mode' ,
1235
- '--tags' , 'python-unittest,python-tagged-unittest,python-junit' ,
1236
- '--jacocout' , 'html' ,
1237
- ])
1238
- if mx .get_env ("SONAR_HOST_URL" , None ):
1239
- mx .run_mx (jacoco_args + [
1240
- 'sonarqube-upload' ,
1241
- '-Dsonar.host.url=%s' % mx .get_env ("SONAR_HOST_URL" ),
1242
- '-Dsonar.projectKey=com.oracle.graalvm.python' ,
1243
- '-Dsonar.projectName=GraalVM - Python' ,
1244
- '--exclude-generated' ,
1245
- ])
1246
- mx .run_mx (jacoco_args + [
1247
- 'coverage-upload' ,
1248
- ])
1224
+ # if args.jacoco:
1225
+ # jacoco_args = [
1226
+ # '--jacoco-whitelist-package', 'com.oracle.graal.python',
1227
+ # # '--jacoco-exclude-annotation', '@GeneratedBy',
1228
+ # ]
1229
+ # mx.run_mx(jacoco_args + [
1230
+ # '--strict-compliance',
1231
+ # '--dynamicimports', '/compiler',
1232
+ # '--primary', 'gate',
1233
+ # '-B=--force-deprecation-as-warning-for-dependencies',
1234
+ # '--strict-mode',
1235
+ # '--tags', 'python-unittest,python-tagged-unittest,python-junit',
1236
+ # '--jacocout', 'html',
1237
+ # ])
1238
+ # if mx.get_env("SONAR_HOST_URL", None):
1239
+ # mx.run_mx(jacoco_args + [
1240
+ # 'sonarqube-upload',
1241
+ # '-Dsonar.host.url=%s' % mx.get_env("SONAR_HOST_URL"),
1242
+ # '-Dsonar.projectKey=com.oracle.graalvm.python',
1243
+ # '-Dsonar.projectName=GraalVM - Python',
1244
+ # '--exclude-generated',
1245
+ # ])
1246
+ # mx.run_mx(jacoco_args + [
1247
+ # 'coverage-upload',
1248
+ # ])
1249
1249
if args .truffle :
1250
1250
executable = python_gvm ()
1251
1251
variants = [
@@ -1259,13 +1259,15 @@ def python_coverage(args):
1259
1259
},
1260
1260
]
1261
1261
outputlcov = "coverage.lcov"
1262
- os .unlink (outputlcov )
1262
+ if os .path .exists (outputlcov ):
1263
+ os .unlink (outputlcov )
1263
1264
cmdargs = ["lcov" , "-o" , outputlcov ]
1264
1265
for kwds in variants :
1265
1266
variant_str = re .sub (r"[^a-zA-Z]" , "_" , repr (kwds ))
1266
1267
for pattern in ["py" ]:
1267
1268
outfile = os .path .join (SUITE .dir , "coverage_%s_%s.lcov" % (variant_str , pattern ))
1268
- os .unlink (outfile )
1269
+ if os .path .exists (outfile ):
1270
+ os .unlink (outfile )
1269
1271
extra_args = [
1270
1272
"--coverage" ,
1271
1273
"--coverage.TrackInternal" ,
0 commit comments