From eeedb44e922cd9bee47eb24bd5ab60255ba9bf55 Mon Sep 17 00:00:00 2001 From: versat Date: Tue, 19 Feb 2019 13:29:32 +0100 Subject: [PATCH] donate-cpu.py: Fix regression: Also upload results if only crashes happened If "head" and "OLD_VERSION" both crash there are no messages and the variable `results_exist" is set to False. But still the results must be uploaded for the crashes to be saved also. Tested with the package http://cppcheck.osuosl.org:8000/double-conversion --- tools/donate-cpu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index 88e4aa501..737ca13d7 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -37,7 +37,7 @@ import platform # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic # changes) -CLIENT_VERSION = "1.1.4" +CLIENT_VERSION = "1.1.5" def checkRequirements(): @@ -514,7 +514,7 @@ while True: print(output) print('=========================================================') break - if results_exist: + if crash or results_exist: uploadResults(package, output, server_address) if info_exists: uploadInfo(package, info_output, server_address)