summaryrefslogtreecommitdiff
path: root/tests/vsp-unit-test-0004.sh
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-13 16:10:12 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-13 20:17:22 +0300
commit792e1bc143a84b1a0707e1f2f91a20cef6f43e31 (patch)
tree720abd78d5e46ba400c983b3283ba598195b384e /tests/vsp-unit-test-0004.sh
parent2c5aec7c218cdaaad6d63064943b738cd4a4d6ed (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-0004.sh')
-rwxr-xr-xtests/vsp-unit-test-0004.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/vsp-unit-test-0004.sh b/tests/vsp-unit-test-0004.sh
index 396e053..7dc5613 100755
--- a/tests/vsp-unit-test-0004.sh
+++ b/tests/vsp-unit-test-0004.sh
@@ -20,12 +20,14 @@ test_histogram() {
vsp_runner rpf.0 &
vsp_runner wpf.0
- result=$(compare_histograms)
+ local result=$(compare_histograms)
test_complete $result
}
test_main() {
+ local format
+
for format in $formats ; do
test_histogram $format
done