diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2020-07-01 13:53:30 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2020-07-13 09:01:01 -0500 |
commit | df0e032b6196934b2b12180a6a05aa8b7e6553fc (patch) | |
tree | 7f67ccf9da94ebef2289e1896cfb9b1d66c06dbc /tests | |
parent | 1f4b774a6444575b86f27b17d3d01e4f41df6581 (diff) | |
download | qemu-df0e032b6196934b2b12180a6a05aa8b7e6553fc.zip qemu-df0e032b6196934b2b12180a6a05aa8b7e6553fc.tar.gz qemu-df0e032b6196934b2b12180a6a05aa8b7e6553fc.tar.bz2 |
iotests.py: filter_testfiles(): filter SOCK_DIR too
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200701105331.121670-5-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qemu-iotests/iotests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 2a08fea..8b76040 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -345,8 +345,9 @@ def filter_qmp(qmsg, filter_fn): return qmsg def filter_testfiles(msg): - prefix = os.path.join(test_dir, "%s-" % (os.getpid())) - return msg.replace(prefix, 'TEST_DIR/PID-') + pref1 = os.path.join(test_dir, "%s-" % (os.getpid())) + pref2 = os.path.join(sock_dir, "%s-" % (os.getpid())) + return msg.replace(pref1, 'TEST_DIR/PID-').replace(pref2, 'SOCK_DIR/PID-') def filter_qmp_testfiles(qmsg): def _filter(_key, value): |