Tools: Test: Prevent in src_test.m unnecessary window open

This speeds up src_test.m with no plot window opening for rate
that is not supported in the conversions matrix. No output file
returns failure -1.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2022-11-29 19:51:33 +02:00 committed by Liam Girdwood
parent dccae1c5b2
commit 48bf7af183
1 changed files with 3 additions and 1 deletions

View File

@ -413,7 +413,9 @@ test = test_run_src(test, t);
%% Analyze
test.fs = t.fs2;
test = chirp_test_analyze(test);
src_test_result_print(t, 'Chirp', 'chirpf');
if test.fail >= 0
src_test_result_print(t, 'Chirp', 'chirpf');
end
% Delete files unless e.g. debugging and need data to run
delete_check(t.files_delete, test.fn_in);