+ if [ "$project" = "lttng-modules" ]; then
+ if [ -d "$WORKSPACE/src/lttng-modules" ]; then
+ # Remove the regular modules sources to replace them with those
+ # from the gerrit change
+ rm -rf "$WORKSPACE/src/lttng-modules"
+ else
+ # This job does not require modules sources
+ continue
+ fi
+ fi
+