diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-09-13 16:10:12 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-09-13 20:17:22 +0300 |
commit | 792e1bc143a84b1a0707e1f2f91a20cef6f43e31 (patch) | |
tree | 720abd78d5e46ba400c983b3283ba598195b384e /tests/vsp-unit-test-0003.sh | |
parent | 2c5aec7c218cdaaad6d63064943b738cd4a4d6ed (diff) |
tests: Make local variables local
Avoid interfering with the vsp-lib namespace by making local variables
local.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'tests/vsp-unit-test-0003.sh')
-rwxr-xr-x | tests/vsp-unit-test-0003.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/vsp-unit-test-0003.sh b/tests/vsp-unit-test-0003.sh index 8fb875d..ff1cf30 100755 --- a/tests/vsp-unit-test-0003.sh +++ b/tests/vsp-unit-test-0003.sh @@ -11,9 +11,9 @@ features="rpf.0 uds wpf.0" formats="RGB24 YUV444M" test_scale() { - format=$1 - insize=$2 - outsize=$3 + local format=$1 + local insize=$2 + local outsize=$3 test_start "scaling from $insize to $outsize in $format" @@ -23,12 +23,14 @@ test_scale() { vsp_runner rpf.0 & vsp_runner wpf.0 - result=$(compare_frames) + local result=$(compare_frames) test_complete $result } test_main() { + local format + for format in $formats ; do test_scale $format 640x640 640x480 test_scale $format 1024x768 640x480 |