Skip to content

Commit

Permalink
iotests/common.rc: introduce _qcow2_dump_header helper
Browse files Browse the repository at this point in the history
We'll use it in tests instead of explicit qcow2.py. Then we are going
to add some filtering in _qcow2_dump_header.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20211223160144.1097696-14-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
  • Loading branch information
Vladimir Sementsov-Ogievskiy authored and XanClic committed Feb 1, 2022
1 parent 083c245 commit c5e627a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/qemu-iotests/common.rc
Expand Up @@ -996,5 +996,15 @@ _require_one_device_of()
_notrun "$* not available"
}

_qcow2_dump_header()
{
img="$1"
if [ -z "$img" ]; then
img="$TEST_IMG"
fi

$PYTHON qcow2.py "$img" dump-header
}

# make sure this script returns success
true

0 comments on commit c5e627a

Please sign in to comment.