Skip to content

Commit cf4cf4c

Browse files
authored
Fix flak CI in editable components test by forcing clean build #211
Fix flak CI in editable components test by forcing clean build
2 parents 72b8b81 + 4955b2b commit cf4cf4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/conanfile/layout/editable_components/ci_test_example.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@
2222

2323
# Do a modification to one component, to verify it is used correctly
2424
replace(os.path.join("greetings", "src", "bye.cpp"), "bye:", "adios:")
25+
26+
# Force a clean build for the editable package to avoid timestamp issues
27+
greetings_build_path = os.path.join("greetings", "build")
28+
if os.path.exists(greetings_build_path):
29+
shutil.rmtree(greetings_build_path)
30+
2531
run("conan build greetings")
32+
2633
# Clean app build to ensure it uses the updated library
2734
app_build_path = os.path.join("app", "build")
2835
if os.path.exists(app_build_path):

0 commit comments

Comments
 (0)