From cc834eda99ecaff5466bc826ac5b99f36b69c537 Mon Sep 17 00:00:00 2001 From: tristan Date: Wed, 3 Jan 2024 12:16:54 +0000 Subject: [PATCH] actually fix jq filter --- tix/filters.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tix/filters.nix b/tix/filters.nix index ce0ad5b..99d6339 100644 --- a/tix/filters.nix +++ b/tix/filters.nix @@ -2,15 +2,12 @@ let emotes = import ./emotes.nix; in rec { failures = '' - [. | map(select(.results[].results[].success == false))[] - | { - (.path): .results | map(select(.results[].success == false))[] - | { - (.component): .results | map(select(.success == false))[] - | { - (.msg): {success, expected, actual} - } - } + [.[] | { + (.path): [.results[] | { + (.component): [.results[] | { + (.msg): select(.success == false) | {expected, actual, success} + }] | add + }] | add }] | add ''; overview = failures;