Commit d1ef9ac5 authored by Guido Gunther's avatar Guido Gunther
Browse files

tests: Don't hardcode iio sysfs path

Based on Martin's MR

parent ca32ad79
from . import sysfs
def test_gyro():
assert("lsm9ds1_magn" in open('/sys/bus/iio/devices/iio:device0/name').read())
sysfs.check_content_in_glob('lsm9ds1_magn\n', '/sys/bus/iio/devices/*/name')
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