From 792e1bc143a84b1a0707e1f2f91a20cef6f43e31 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 13 Sep 2016 16:10:12 +0300 Subject: tests: Make local variables local Avoid interfering with the vsp-lib namespace by making local variables local. Signed-off-by: Laurent Pinchart --- tests/vsp-unit-test-0012.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/vsp-unit-test-0012.sh') diff --git a/tests/vsp-unit-test-0012.sh b/tests/vsp-unit-test-0012.sh index 21b14bb..0275d56 100755 --- a/tests/vsp-unit-test-0012.sh +++ b/tests/vsp-unit-test-0012.sh @@ -51,7 +51,7 @@ test_flipping() { vsp_runner wpf.0 --count=6 --skip=0 --buffers=1 --pause=3 & vsp_runner_wait wpf.0 - result=$(compare_frames $label=0) + local result=$(compare_frames $label=0) [ $result = fail ] && { test_complete $result ; @@ -71,6 +71,7 @@ test_flipping() { test_main() { # Check the supported directions and reset the associated controls local supported_directions + local direction for direction in $directions ; do $(vsp1_has_feature "wpf.0[control:'$(get_var $direction control)']") && { -- cgit v1.2.3