Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Mar 2022 08:09:59 +0000 (09:09 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Mar 2022 08:15:35 +0000 (09:15 +0100)
- Ignore MBI scripts in the coverage
- unused local variable was indeed a bug

sonar-project.properties
teshsuite/smpi/MBI/simgrid.py

index 4d9201f..1742c3f 100644 (file)
@@ -199,7 +199,7 @@ sonar.cfamily.gcov.reportsPath=Testing/CoverageInfo
 #   - Python files used to generate either simcalls or deployment files
 #   - Any java source code (it's deprecated now)
 #   - MSG (deprecated too)
-sonar.coverage.exclusions=teshsuite/smpi/mpich3-test/**,examples/smpi/mc/**,**/*.xml,src/simix/simcalls.py,**/generate.py,**/*.java,src/bindings/java/**,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/**
+sonar.coverage.exclusions=teshsuite/smpi/mpich3-test/**,teshsuite/smpi/MBI/**,examples/smpi/mc/**,**/*.xml,**/generate.py,**/*.java,src/bindings/java/**,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/**
 
 # Encoding of the source files
 sonar.sourceEncoding=UTF-8
index 1dc6bef..b4f4158 100644 (file)
@@ -70,7 +70,7 @@ class Tool(AbstractTool):
 
     def parse(self, cachefile):
         if os.path.exists(f'{cachefile}.timeout') or os.path.exists(f'logs/simgrid/{cachefile}.timeout'):
-            outcome = 'timeout'
+            return 'timeout'
         if not (os.path.exists(f'{cachefile}.txt') or os.path.exists(f'logs/simgrid/{cachefile}.txt')):
             return 'failure'