X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fdata%2Fplugins%2Fsrc.ctf.lttng-live%2Flttng_live_server.py;h=a30dbc4657c79d65bead37cc264b49da8f9cf370;hb=9c878ece51a647c6462a9cd3a8a6f6fc8ba437a7;hp=416f9bca1eda60c8d9362b91c7566057f230a7b2;hpb=742e3279742e94b50f381786085b3e018839f5be;p=babeltrace.git diff --git a/tests/data/plugins/src.ctf.lttng-live/lttng_live_server.py b/tests/data/plugins/src.ctf.lttng-live/lttng_live_server.py index 416f9bca..a30dbc46 100644 --- a/tests/data/plugins/src.ctf.lttng-live/lttng_live_server.py +++ b/tests/data/plugins/src.ctf.lttng-live/lttng_live_server.py @@ -1339,7 +1339,7 @@ class LttngLiveServer: print(self._server_port, end='', file=tmp_port_file) # Rename temporary file to real file - os.rename(tmp_port_file.name, port_filename) + os.replace(tmp_port_file.name, port_filename) logging.info( 'Renamed port file: src-path="{}", dst-path="{}"'.format( tmp_port_file.name, port_filename