Skip to content

Commit df0e032

Browse files
Vladimir Sementsov-Ogievskiyebblake
authored andcommitted
iotests.py: filter_testfiles(): filter SOCK_DIR too
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> Message-Id: <[email protected]> Signed-off-by: Eric Blake <[email protected]>
1 parent 1f4b774 commit df0e032

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/qemu-iotests/iotests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ def filter_qmp(qmsg, filter_fn):
345345
return qmsg
346346

347347
def filter_testfiles(msg):
348-
prefix = os.path.join(test_dir, "%s-" % (os.getpid()))
349-
return msg.replace(prefix, 'TEST_DIR/PID-')
348+
pref1 = os.path.join(test_dir, "%s-" % (os.getpid()))
349+
pref2 = os.path.join(sock_dir, "%s-" % (os.getpid()))
350+
return msg.replace(pref1, 'TEST_DIR/PID-').replace(pref2, 'SOCK_DIR/PID-')
350351

351352
def filter_qmp_testfiles(qmsg):
352353
def _filter(_key, value):

0 commit comments

Comments
 (0)