From 495c71dc136260beb27b593b75dc76b0cc4ea63c Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 12 Sep 2016 23:07:15 +0300 Subject: tests: Reset the rotation control before running the flip tests The rotation control can be set to a non-default value by a previously run test, reset it. Signed-off-by: Laurent Pinchart --- tests/vsp-unit-test-0012.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/vsp-unit-test-0012.sh b/tests/vsp-unit-test-0012.sh index a536ca9..afbe279 100755 --- a/tests/vsp-unit-test-0012.sh +++ b/tests/vsp-unit-test-0012.sh @@ -79,6 +79,11 @@ test_main() { } done + # Reset the rotation control to avoid interfering with the test + $(vsp1_has_feature "wpf.0[control:'Rotate']") && { + vsp1_set_control wpf.0 Rotate 0 + } + local directions=$supported_directions for direction in $directions ; do -- cgit v1.2.3