aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_pg_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_pg_interface.py')
-rw-r--r--test/vpp_pg_interface.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py
index 2682774caab..0fd5df4f345 100644
--- a/test/vpp_pg_interface.py
+++ b/test/vpp_pg_interface.py
@@ -1,4 +1,5 @@
import os
+import shutil
import socket
from socket import inet_pton, inet_ntop
import struct
@@ -168,7 +169,7 @@ class VppPGInterface(VppInterface):
filename,
)
self.test.logger.debug("Renaming %s->%s" % (path, name))
- os.rename(path, name)
+ shutil.move(path, name)
except OSError:
self.test.logger.debug("OSError: Could not rename %s %s" % (path, filename))