Commit c78fba62 authored by Jan Kiene's avatar Jan Kiene
Browse files

use shutil.move instead of .rename

the latter can have problems when copying over filesystem borders, e.g.
when using WSL
parent 32d41f38
Loading
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import logging
import os
import re
import json
import shutil
from tests import testconfig
import pytest
import platform
@@ -43,6 +44,7 @@ import textwrap
from pathlib import Path
from subprocess import TimeoutExpired, run
from tempfile import NamedTemporaryFile
from shutil import move
import tempfile
from typing import Optional, Union
import numpy as np
@@ -577,10 +579,11 @@ class EncoderFrontend:
                        pytest.fail(
                            "No dmx signal files found - did you build with DEBUG_MODE_INFO?"
                        )
                    assert id_match is not None
                    else:
                        id = id_match.group(1)
                    dmx_file.rename(
                        Path(output_bitstream_path).with_suffix(f".dmx.ch{id}.pcm")
                        move(
                            dmx_file,
                            Path(output_bitstream_path).with_suffix(f".dmx.ch{id}.pcm"),
                        )

        self.returncode = result.returncode