From 89941275b7ed957cebebccf56638428fd94ab966 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 13 Feb 2017 20:31:29 +0200 Subject: vsp-lib: Add pipeline description to the frame file name If different pipelines from the same test generate the same output frame size and format from the same input format, the frame binary file names will collide. To avoid overwriting output files, add the pipeline description to the file name. Signed-off-by: Laurent Pinchart --- scripts/vsp-lib.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index e4d8371..7837712 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -256,6 +256,7 @@ compare_frame_fuzzy() { compare_frames() { local args=$* + local pipe=$__vsp_pipe local in_format=$__vsp_rpf_format local out_format=$__vsp_wpf_format local wpf=$__vsp_wpf_index @@ -274,7 +275,7 @@ compare_frames() { params=${params//=/_} params=${params//(/_} params=${params//)/_} - params=$in_fmt-$out_fmt-$size$params + params=$pipe-$in_fmt-$out_fmt-$size$params if [ x$__vsp_pixel_perfect != xtrue ] ; then method=fuzzy @@ -449,6 +450,8 @@ pipe_configure() { pipe_reset pipe_$pipe $* + + __vsp_pipe=$pipe } # ------------------------------------------------------------------------------ -- cgit v1.2.3