iotests: Add poke_file_[bl]e functions
commit2f8bb28ff0123a4e84bd14facc541dd2159580c2
authorMax Reitz <mreitz@redhat.com>
Tue, 24 Mar 2020 17:27:56 +0000 (24 18:27 +0100)
committerMax Reitz <mreitz@redhat.com>
Thu, 26 Mar 2020 13:52:37 +0000 (26 14:52 +0100)
tree3a72bbd33c543036fd7a47feeb4d1e7befc3c376
parent1656324ec0d1a9466160a5c5065b9bf11e6ea91b
iotests: Add poke_file_[bl]e functions

Similarly to peek_file_[bl]e, we may want to write binary integers into
a file.  Currently, this often means messing around with poke_file and
raw binary strings.  I hope these functions make it a bit more
comfortable.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Code-suggested-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200324172757.1173824-3-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/common.rc