gpio_keys and battery_cpufreq test failures
devkit setup
Image: https://arm01.puri.sm/job/manual/job/devkit-latest_linux-next_image_build/62/
kernel: 5.2.0-rc2-next-20190528-g0e8e80ff
librem5-devkit-check: 0.0.3~141.gbp76bb8e
librem5-devkit-check failures
purism@pureos:~$ librem5-devkit-check
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.7.3rc1, pytest-3.10.1, py-1.7.0, pluggy-0.8.0
rootdir: /usr/share/librem5-devkit/check, inifile:
collected 6 items
test_battery_charger.py . [ 16%]
test_cpufreq.py F [ 33%]
test_gpio_keys.py F [ 50%]
test_magn.py . [ 66%]
test_panel_brightness.py . [ 83%]
test_usb_hub.py . [100%]
==================================================================================================== FAILURES =====================================================================================================
______________________________________________________________________________________________ test_battery_cpufreq _______________________________________________________________________________________________
def test_battery_cpufreq():
> assert("1000000" in open("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq").read())
E FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq'
test_cpufreq.py:2: FileNotFoundError
_________________________________________________________________________________________________ test_gpio_keys __________________________________________________________________________________________________
def test_gpio_keys():
"Test if we have a evdev named 'gpio-keys'"
devices = [evdev.InputDevice(path).name for path in evdev.list_devices()]
> assert("gpio-keys" in devices)
E AssertionError: assert 'gpio-keys' in []
test_gpio_keys.py:7: AssertionError
================================================================================================ warnings summary =================================================================================================
/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:58
/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:58: PytestWarning: could not create cache path /usr/share/librem5-devkit/check/.pytest_cache/v/cache/stepwise
PytestWarning(fmt.format(**args) if args else fmt), self._config
/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:58: PytestWarning: could not create cache path /usr/share/librem5-devkit/check/.pytest_cache/v/cache/nodeids
PytestWarning(fmt.format(**args) if args else fmt), self._config
/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:58: PytestWarning: could not create cache path /usr/share/librem5-devkit/check/.pytest_cache/v/cache/lastfailed
PytestWarning(fmt.format(**args) if args else fmt), self._config
-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================================================= 2 failed, 4 passed, 3 warnings in 0.66 seconds ==================================================================================
Edited by Heather Ellsworth