Commit 0467fb85 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

pytests/test_magn.py: modprobe the driver module before using it



It's currently blacklisted, so in order to test it anyway, do modprobe.
Signed-off-by: Martin Kepplinger's avatarMartin Kepplinger <martin.kepplinger@puri.sm>
parent 4c757f1a
from . import sysfs
import os
def test_magn():
os.system("modprobe st_magn_i2c")
sysfs.check_content_in_glob('lsm9ds1_magn\n', '/sys/bus/iio/devices/*/name')
os.system("modprobe -r st_magn_i2c")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment