oktetlabs / test-environment

OKTET Labs Test Environment
Other
5 stars 10 forks source link

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

Closed okt-galaktionov closed 1 month ago

okt-galaktionov commented 2 months 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