[LTP] [PATCH] lib: Print failure hints only once to reduce log duplication
    Cyril Hrubis 
    chrubis@suse.cz
       
    Wed Oct 30 13:14:21 CET 2024
    
    
  
Hi!
> The LTP test currently prints failure hints multiple times if a test
> encounters several TFAIL or TBROK results. This leads to unnecessarily
> verbose and duplicated logs.
> 
> This patch modifies the `print_failure_hints()` function to ensure that
> failure hints are printed only once per test run. By setting `show_failure_hints`
> to 0 after the first print, subsequent calls to `print_failure_hints()`
> will not produce redundant output.
Hmm, we do call print_failure_hints() from do_exit() that calls exit()
at the end of the function. We shouldn't print the hints twice, what do
I miss?
-- 
Cyril Hrubis
chrubis@suse.cz
    
    
More information about the ltp
mailing list