|
18 | 18 | # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ |
19 | 19 | # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic |
20 | 20 | # changes) |
21 | | -SERVER_VERSION = "1.1.2" |
| 21 | +SERVER_VERSION = "1.1.3" |
22 | 22 |
|
23 | 23 | OLD_VERSION = '1.88' |
24 | 24 |
|
@@ -150,6 +150,13 @@ def crashReport(): |
150 | 150 | datestr = '' |
151 | 151 | for line in open(filename, 'rt'): |
152 | 152 | line = line.strip() |
| 153 | + if line.startswith('cppcheck: '): |
| 154 | + if OLD_VERSION not in line: |
| 155 | + # Package results seem to be too old, skip |
| 156 | + break |
| 157 | + else: |
| 158 | + # Current package, parse on |
| 159 | + continue |
153 | 160 | if line.startswith(str(current_year) + '-') or line.startswith(str(current_year - 1) + '-'): |
154 | 161 | datestr = line |
155 | 162 | if not line.startswith('count:'): |
@@ -419,6 +426,13 @@ def headReport(resultsPath): |
419 | 426 | firstLine = False |
420 | 427 | continue |
421 | 428 | line = line.strip() |
| 429 | + if line.startswith('cppcheck: '): |
| 430 | + if OLD_VERSION not in line: |
| 431 | + # Package results seem to be too old, skip |
| 432 | + break |
| 433 | + else: |
| 434 | + # Current package, parse on |
| 435 | + continue |
422 | 436 | if line.startswith('head results:'): |
423 | 437 | headResults = True |
424 | 438 | continue |
@@ -532,11 +546,21 @@ def timeReport(resultPath): |
532 | 546 | if not os.path.isfile(filename): |
533 | 547 | continue |
534 | 548 | for line in open(filename, 'rt'): |
| 549 | + if line.startswith('cppcheck: '): |
| 550 | + if OLD_VERSION not in line: |
| 551 | + # Package results seem to be too old, skip |
| 552 | + break |
| 553 | + else: |
| 554 | + # Current package, parse on |
| 555 | + continue |
535 | 556 | if not line.startswith('elapsed-time:'): |
536 | 557 | continue |
537 | 558 | split_line = line.strip().split() |
538 | 559 | time_base = float(split_line[2]) |
539 | 560 | time_head = float(split_line[1]) |
| 561 | + if time_base < 0.0 or time_head < 0.0: |
| 562 | + # ignore results with crashes / errors for the time report |
| 563 | + break |
540 | 564 | total_time_base += time_base |
541 | 565 | total_time_head += time_head |
542 | 566 | suspicious_time_difference = False |
@@ -596,6 +620,13 @@ def check_library_report(result_path, message_id): |
596 | 620 | continue |
597 | 621 | info_messages = False |
598 | 622 | for line in open(filename, 'rt'): |
| 623 | + if line.startswith('cppcheck: '): |
| 624 | + if OLD_VERSION not in line: |
| 625 | + # Package results seem to be too old, skip |
| 626 | + break |
| 627 | + else: |
| 628 | + # Current package, parse on |
| 629 | + continue |
599 | 630 | if line == 'info messages:\n': |
600 | 631 | info_messages = True |
601 | 632 | if not info_messages: |
|
0 commit comments