oktetlabs / test-environment

OKTET Labs Test Environment
Other
5 stars 9 forks source link

External buffer awareness and sysfs-friendliness for file read utility function #46

Closed okt-galaktionov closed 1 week ago

okt-galaktionov commented 1 month ago

Ignore useless file sizes reported by stat and do not panic if user passes a te_string bound to an external buffer. This makes it possible to read sysfs files directly into buffers used for RCF values.

Testing done: these changes were successfully used to expose information from sysfs through Configurator