summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-02-13 20:31:29 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-02-13 20:43:48 +0200
commit89941275b7ed957cebebccf56638428fd94ab966 (patch)
tree44a2c1b26de800adea0722187f1b80dedaafbeb2
parent12cbfe3ec45ba4047570b84ad52ee2ebe954efb3 (diff)
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 <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xscripts/vsp-lib.sh5
1 files changed, 4 insertions, 1 deletions
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
}
# ------------------------------------------------------------------------------