]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
iotests: Filter cid numbers in VMDK extent info
authorFam Zheng <famz@redhat.com>
Tue, 15 May 2018 15:36:33 +0000 (23:36 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 1 Feb 2019 12:46:44 +0000 (13:46 +0100)
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/common.filter
tests/qemu-iotests/iotests.py

index 2031e353a545e73f159710a5e1f19afad398f0f7..1aa7d57140f868107350b53ab5b045669acac526 100644 (file)
@@ -165,6 +165,7 @@ _filter_img_info()
         -e "/table_size: [0-9]\\+/d" \
         -e "/compat: '[^']*'/d" \
         -e "/compat6: \\(on\\|off\\)/d" \
+        -e "s/cid: [0-9]\+/cid: XXXXXXXXXX/" \
         -e "/static: \\(on\\|off\\)/d" \
         -e "/zeroed_grain: \\(on\\|off\\)/d" \
         -e "/subformat: '[^']*'/d" \
index 009c614ef77da660e01b8bac1c423828a890331c..71214d46b5ce733974eadb60581d9c2069123187 100644 (file)
@@ -299,6 +299,7 @@ def filter_img_info(output, filename):
                    .replace(imgfmt, 'IMGFMT')
         line = re.sub('iters: [0-9]+', 'iters: XXX', line)
         line = re.sub('uuid: [-a-f0-9]+', 'uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', line)
+        line = re.sub('cid: [0-9]+', 'cid: XXXXXXXXXX', line)
         lines.append(line)
     return '\n'.join(lines)