diff options
| author | John Snow | 2018-12-21 10:35:24 +0100 |
|---|---|---|
| committer | Eric Blake | 2019-01-14 17:09:46 +0100 |
| commit | fa1151f811ffa1973b6980b09f095d0e2ebea08b (patch) | |
| tree | 3fcbbd851cfa415378409bd8f1ab32acfb5ff36f | |
| parent | iotests.py: don't abort if IMGKEYSECRET is undefined (diff) | |
| download | qemu-fa1151f811ffa1973b6980b09f095d0e2ebea08b.tar.gz qemu-fa1151f811ffa1973b6980b09f095d0e2ebea08b.tar.xz qemu-fa1151f811ffa1973b6980b09f095d0e2ebea08b.zip | |
iotests: add filter_generated_node_ids
To mimic the common filter of the same name, but for the python tests.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20181221093529.23855-7-jsnow@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
| -rw-r--r-- | tests/qemu-iotests/iotests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index a34e66813a..9595429fea 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -239,6 +239,9 @@ def filter_testfiles(msg): prefix = os.path.join(test_dir, "%s-" % (os.getpid())) return msg.replace(prefix, 'TEST_DIR/PID-') +def filter_generated_node_ids(msg): + return re.sub("#block[0-9]+", "NODE_NAME", msg) + def filter_img_info(output, filename): lines = [] for line in output.split('\n'): |
