diff options
Diffstat (limited to 'test/py/tests/test_cleanup_build.py')
| -rw-r--r-- | test/py/tests/test_cleanup_build.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/test/py/tests/test_cleanup_build.py b/test/py/tests/test_cleanup_build.py index 5206ff73ec7..aca90cb1107 100644 --- a/test/py/tests/test_cleanup_build.py +++ b/test/py/tests/test_cleanup_build.py @@ -17,6 +17,11 @@ import pytest  @pytest.fixture  def tmp_copy_of_builddir(u_boot_config, tmp_path):      """For each test, provide a temporary copy of the initial build directory.""" +    if os.path.realpath(u_boot_config.source_dir) == os.path.realpath( +        u_boot_config.build_dir +    ): +        pytest.skip("Leftover detection requires out of tree build.") +        return None      shutil.copytree(          u_boot_config.build_dir,          tmp_path, | 
