From 43459d175066967c34ab1700e862baa90de4db5e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 21 Apr 2022 17:28:55 +0200 Subject: [PATCH] Store output Now we can explain which file printed the error --- tests/checks/check-completions.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/checks/check-completions.fish b/tests/checks/check-completions.fish index e9ce18cd1..b1ca2dc14 100644 --- a/tests/checks/check-completions.fish +++ b/tests/checks/check-completions.fish @@ -3,7 +3,9 @@ # No output is good output for f in $__fish_data_dir/completions/*.fish - if command -q (string replace -r '.*/([^/]+).fish' '$1' $f) - $fish $f + if type -q (string replace -r '.*/([^/]+).fish' '$1' $f) + set -l out ($fish $f 2>&1 | string collect) + test -n "$out" + and echo -- OUTPUT from $f: $out end end