rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

test_ili9341 hangs #122

Closed thijstriemstra closed 3 years ago

thijstriemstra commented 3 years ago

Output of tox -r -e py38

================================================================ test session starts ================================================================
platform linux -- Python 3.8.5, pytest-4.5.0, py-1.9.0, pluggy-0.13.1 -- /home/foo/luma.lcd/.tox/py38/bin/python
cachedir: .tox/py38/.pytest_cache
rootdir: /home/foo/luma.lcd
plugins: cov-2.10.1
collected 58 items                                                                                                                                  

tests/test_backlight.py::test_unsupported_platform PASSED                                                                                     [  1%]
tests/test_backlight.py::test_init PASSED                                                                                                     [  3%]
tests/test_backlight.py::test_gpio_cleanup PASSED                                                                                             [  5%]
tests/test_backlight.py::test_pwm_cleanup PASSED                                                                                              [  6%]
tests/test_backlight.py::test_pcf8574_cleanup PASSED                                                                                          [  8%]
tests/test_backlight.py::test_active_low_enable_on PASSED                                                                                     [ 10%]
tests/test_backlight.py::test_active_low_enable_off PASSED                                                                                    [ 12%]
tests/test_backlight.py::test_active_high_enable_on PASSED                                                                                    [ 13%]
tests/test_backlight.py::test_active_high_enable_off PASSED                                                                                   [ 15%]
tests/test_backlight.py::test_pwm_turn_off PASSED                                                                                             [ 17%]
tests/test_backlight.py::test_pwm_turn_on PASSED                                                                                              [ 18%]
tests/test_backlight.py::test_pwm_turn_50_percent PASSED                                                                                      [ 20%]
tests/test_backlight.py::test_pwm_unsupported_platform PASSED                                                                                 [ 22%]
tests/test_hd44780.py::test_init_4bitmode PASSED                                                                                              [ 24%]
tests/test_hd44780.py::test_init_8bitmode PASSED                                                                                              [ 25%]
tests/test_hd44780.py::test_display PASSED                                                                                                    [ 27%]
tests/test_hd44780.py::test_custom_full PASSED                                                                                                [ 29%]
tests/test_hd44780.py::test_get_font PASSED                                                                                                   [ 31%]
tests/test_hd44780.py::test_no_contrast PASSED                                                                                                [ 32%]
tests/test_hd44780.py::test_i2c_backlight PASSED                                                                                              [ 34%]
tests/test_hd44780.py::test_i2c_does_not_support_backlight PASSED                                                                             [ 36%]
tests/test_hd44780.py::test_unsupported_display_mode PASSED                                                                                   [ 37%]
tests/test_ht1621.py::test_init_6x8 PASSED                                                                                                    [ 39%]
tests/test_ht1621.py::test_cleanup PASSED                                                                                                     [ 41%]
tests/test_ht1621.py::test_hide PASSED                                                                                                        [ 43%]
tests/test_ht1621.py::test_show PASSED                                                                                                        [ 44%]
tests/test_ht1621.py::test_display PASSED                                                                                                     [ 46%]
tests/test_ili9341.py::test_init_320x240 PASSED                                                                                               [ 48%]
tests/test_ili9341.py::test_init_240x240 PASSED                                                                                               [ 50%]
tests/test_ili9341.py::test_init_320x180 PASSED                                                                                               [ 51%]
tests/test_ili9341.py::test_init_invalid_dimensions PASSED                                                                                    [ 53%]
tests/test_ili9341.py::test_offsets PASSED                                                                                                    [ 55%]
tests/test_ili9341.py::test_contrast PASSED                                                                                                   [ 56%]
tests/test_ili9341.py::test_hide PASSED                                                                                                       [ 58%]
tests/test_ili9341.py::test_show PASSED                                                                                                       [ 60%]
tests/test_ili9341.py::test_display 
thijstriemstra commented 3 years ago

We should use pytest-timeout to ensure there's a reasonable timeout, or it might hang for hours, with e.g. pytest --timeout=3.

rm-hull commented 3 years ago

Does it consistently timeout for you? What platform?

thijstriemstra commented 3 years ago

Does it consistently timeout for you?

Yes.

What platform?

Ubuntu 20. But also on Travis @rm-hull: https://travis-ci.org/github/rm-hull/luma.lcd/jobs/736192575#L798