We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ee620 commit e9b4de0Copy full SHA for e9b4de0
tests/integration/examples/test_conan_cmake.py
@@ -111,6 +111,10 @@ def _publish_library_to_cache() -> None:
111
library_source = examples_root / 'conan_cmake' / 'library'
112
library_temp = Path('temp_library')
113
114
+ # Clean up any existing temp directory first
115
+ if library_temp.exists():
116
+ shutil.rmtree(library_temp)
117
+
118
# Copy library to temp location
119
shutil.copytree(library_source, library_temp)
120
@@ -130,6 +134,9 @@ def _publish_library_to_cache() -> None:
130
134
131
135
finally:
132
136
os.chdir(original_cwd)
137
+ # Clean up temp directory
138
139
133
140
141
@staticmethod
142
def test_library_consumer(example_runner: CliRunner) -> None:
0 commit comments