tests: Reset the rotation control before running the flip tests
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Sep 2016 20:07:15 +0000 (23:07 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Sep 2016 22:07:08 +0000 (01:07 +0300)
The rotation control can be set to a non-default value by a previously
run test, reset it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
tests/vsp-unit-test-0012.sh

index a536ca9..afbe279 100755 (executable)
@@ -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