You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkdtemp() execute mktemp -d on DUT, and returns an object with a put method, which sets the destination directory to the temporary directory.
Now should this feature be added to CommandProtocol or FileTransferProtocol?
The driver needed to do this, must have both!
The Class for the returned object, should of course also be in the labgrid three.
labgrid/util seems to be the most appropriate place.
The returned object is quite limited. It would have been great with at clone of pytest's tmpdir with py.path.local support. But as far as I can see, none of the code can be reused. Thus all needs to be rewritten from scratch.
Implementing this as a function scope fixture would also make sense, but there is no obvious place to put new generic fixtures in the labgrid tree.
The text was updated successfully, but these errors were encountered:
We would like to make a generic mechanism in labgrid, which can be used for creating a mktemp(1) directory on target and copy files to that.
mkdtemp() execute mktemp -d on DUT, and returns an object with a put method, which sets the destination directory to the temporary directory.
Now should this feature be added to CommandProtocol or FileTransferProtocol?
The driver needed to do this, must have both!
The Class for the returned object, should of course also be in the labgrid three.
labgrid/util seems to be the most appropriate place.
The returned object is quite limited. It would have been great with at clone of pytest's tmpdir with py.path.local support. But as far as I can see, none of the code can be reused. Thus all needs to be rewritten from scratch.
Implementing this as a function scope fixture would also make sense, but there is no obvious place to put new generic fixtures in the labgrid tree.
The text was updated successfully, but these errors were encountered: