- vlttng_cmd = 'vlttng --jobs=$(nproc) --profile urcu-master' \
- ' --override projects.babeltrace.build-env.PYTHON=python3' \
- ' --override projects.babeltrace.build-env.PYTHON_CONFIG=python3-config' \
- ' --profile babeltrace-stable-1.4' \
- ' --profile babeltrace-python' \
- ' --profile lttng-tools-master' \
- ' --override projects.lttng-tools.checkout='+lttng_tools_commit + \
- ' --profile lttng-tools-no-man-pages' \
- ' --verbose'
+def get_vlttng_cmd(
+ lttng_version, lttng_tools_url, lttng_tools_commit, lttng_ust_url=None, lttng_ust_commit=None
+):
+ """
+ Return vlttng cmd to be used in the job template for setup.
+ """
+
+ vlttng_cmd = (
+ 'vlttng --jobs=$(nproc) --profile urcu-master'
+ ' --override projects.babeltrace.build-env.PYTHON=python3'
+ ' --override projects.babeltrace.build-env.PYTHON_CONFIG=python3-config'
+ ' --profile babeltrace-stable-1.4'
+ ' --profile babeltrace-python'
+ ' --profile lttng-tools-master'
+ ' --override projects.lttng-tools.source='
+ + lttng_tools_url
+ + ' --override projects.lttng-tools.checkout='
+ + lttng_tools_commit
+ + ' --profile lttng-tools-no-man-pages'
+ )