[vsp-tests] [PATCH 10/16] vsp-lib: Save RPF input frames upon error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When a test fail, it can be useful to inspect the frames input to the
RPFs. Save them along the frames output by the WPFs and the reference
frames.

Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
---
 scripts/vsp-lib.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 92a9121337f1..ba87de5af954 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -316,9 +316,13 @@ compare_frames() {
 
 	if [ x$VSP_KEEP_FRAMES = x1 -o $result = "fail" ] ; then
 		mv ${frames_dir}ref-frame.bin ${0/.sh/}-$params-ref-frame.bin
+		for frame in ${frames_dir}rpf.*.bin ; do
+			mv $frame ${0/.sh/}-$params-$(basename ${frame})
+		done
 	else
 		rm -f ${frames_dir}ref-frame.bin
 		rm -f ${frames_dir}frame-*.bin
+		rm -f ${frames_dir}rpf.*.bin
 	fi
 
 	echo $result
-- 
Regards,

Laurent Pinchart





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux