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-0011.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/vsp-unit-test-0011.sh') diff --git a/tests/vsp-unit-test-0011.sh b/tests/vsp-unit-test-0011.sh index 17f8405..9d7b4e9 100755 --- a/tests/vsp-unit-test-0011.sh +++ b/tests/vsp-unit-test-0011.sh @@ -82,12 +82,14 @@ test_flipping() { vsp_runner rpf.0 & vsp_runner wpf.0 - result=$(compare_frames $label) + local result=$(compare_frames $label) test_complete $result } test_main() { + local direction + for direction in $directions ; do $(vsp1_has_feature "wpf.0[control:'$(get_var $direction control)']") && { set_var $direction index 0 @@ -100,12 +102,12 @@ test_main() { while true ; do # Update all controls - label= + local label= for direction in $supported_directions ; do local index=$(get_var $direction index) local values=$(get_var $direction values) local value=$(get_array_value "$values" $index) - local label="$label $(get_var $direction label)=$value" + label="$label $(get_var $direction label)=$value" dir_set_flipping_control $direction done -- cgit v1.2.3