From 278b8dd3e205e78e611f1bc7f8525a4068878be2 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Mon, 6 Feb 2023 14:49:29 -0500 Subject: [PATCH] Pull in PR #553. Bump release. --- auto/unity_test_summary.rb | 5 ++++- src/unity.h | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/auto/unity_test_summary.rb b/auto/unity_test_summary.rb index b3fe8a6..c31b1d5 100644 --- a/auto/unity_test_summary.rb +++ b/auto/unity_test_summary.rb @@ -86,7 +86,10 @@ class UnityTestSummary def get_details(_result_file, lines) results = { failures: [], ignores: [], successes: [] } lines.each do |line| - _src_file, _src_line, _test_name, status, _msg = line.split(/:/) + status_match = line.match(/^[^:]+:[^:]+:\w+(?:\([^\)]*\))?:([^:]+):?/) + next unless status_match + status = status_match.captures[0] + line_out = (@root && (@root != 0) ? "#{@root}#{line}" : line).gsub(/\//, '\\') case status when 'IGNORE' then results[:ignores] << line_out diff --git a/src/unity.h b/src/unity.h index e321a1d..d199f4b 100644 --- a/src/unity.h +++ b/src/unity.h @@ -9,8 +9,8 @@ #define UNITY #define UNITY_VERSION_MAJOR 2 -#define UNITY_VERSION_MINOR 5 -#define UNITY_VERSION_BUILD 4 +#define UNITY_VERSION_MINOR 6 +#define UNITY_VERSION_BUILD 0 #define UNITY_VERSION ((UNITY_VERSION_MAJOR << 16) | (UNITY_VERSION_MINOR << 8) | UNITY_VERSION_BUILD) #ifdef __cplusplus