jjb: system-tests: add parameters for Tools and UST git repos
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 24 Oct 2019 20:19:20 +0000 (16:19 -0400)
committerJonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
Thu, 24 Oct 2019 20:44:28 +0000 (16:44 -0400)
This is useful to launch custom jobs on a specific repo to test
something.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/system-tests/lava2-submit.py
scripts/system-tests/run-baremetal-benchmarks.sh
scripts/system-tests/run-baremetal-tests.sh
scripts/system-tests/run-kvm-fuzzing-tests.sh
scripts/system-tests/run-kvm-tests.sh

index 2fa8145bf0c7cac175c099a0c61c3bb12bcc78f2..7b42d2244d176097347173d9f8a22197f123385c 100644 (file)
@@ -122,7 +122,7 @@ def print_test_output(server, job):
         if print_line:
             print("{} {}".format(line['dt'], line['msg']))
 
-def get_vlttng_cmd(lttng_tools_commit, lttng_ust_commit=None):
+def get_vlttng_cmd(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.
     """
@@ -133,11 +133,13 @@ def get_vlttng_cmd(lttng_tools_commit, lttng_ust_commit=None):
                     ' --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'
 
     if lttng_ust_commit is not None:
         vlttng_cmd += ' --profile lttng-ust-master ' \
+                    ' --override projects.lttng-ust.source='+lttng_ust_url + \
                     ' --override projects.lttng-ust.checkout='+lttng_ust_commit+ \
                     ' --profile lttng-ust-no-man-pages'
 
@@ -155,8 +157,10 @@ def main():
     parser.add_argument('-j', '--jobname', required=True)
     parser.add_argument('-k', '--kernel', required=True)
     parser.add_argument('-lm', '--lmodule', required=True)
+    parser.add_argument('-tu', '--tools-url', required=True)
     parser.add_argument('-tc', '--tools-commit', required=True)
     parser.add_argument('-id', '--build-id', required=True)
+    parser.add_argument('-uu', '--ust-url', required=False)
     parser.add_argument('-uc', '--ust-commit', required=False)
     parser.add_argument('-d', '--debug', required=False, action='store_true')
     args = parser.parse_args()
@@ -191,7 +195,7 @@ def main():
 
     vlttng_path = '/tmp/virtenv'
 
-    vlttng_cmd = get_vlttng_cmd(args.tools_commit, args.ust_commit)
+    vlttng_cmd = get_vlttng_cmd(args.tools_url, args.tools_commit, args.ust_url, args.ust_commit)
 
     context = dict()
     context['DeviceType'] = DeviceType
index 0313d3002a822c72233d7fd2596254ba78ebfe1e..e623f3db54b94ee0ece6e709bbb1bf4a7fc26bf7 100644 (file)
@@ -29,6 +29,7 @@ python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \
                           -j "$JOB_NAME" \
                           -k "$S3_URL_KERNEL_IMAGE" \
                           -lm "$S3_URL_LTTNG_MODULES" \
+                          -tu "$LTTNG_TOOLS_REPO" \
                           -tc "$LTTNG_TOOLS_COMMIT_ID" \
                           -id "$BUILD_TAG"
 set +eu
index 6b62f6da8a2542e7379c329e1b388ecf3acd3194..f289b7179fa0e1bfb77bba0fdef9b92c5ec4cd41 100644 (file)
@@ -30,6 +30,8 @@ python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \
                           -j "$JOB_NAME" \
                           -k "$S3_URL_KERNEL_IMAGE" \
                           -lm "$S3_URL_LTTNG_MODULES" \
+                          -tu "$LTTNG_TOOLS_REPO" \
+                          -uu "$LTTNG_UST_REPO" \
                           -tc "$LTTNG_TOOLS_COMMIT_ID" \
                           -uc "$LTTNG_UST_COMMIT_ID" \
                           -id "$BUILD_TAG"
index 8ab8a6c9457d41f24a1c62f9bedb4da6bd0612f4..a1b5c5483813cc8fe23513ee96b8bb5fad29492b 100644 (file)
@@ -29,6 +29,8 @@ python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \
                           -j "$JOB_NAME" \
                           -k "$S3_URL_KERNEL_IMAGE" \
                           -lm "$S3_URL_LTTNG_MODULES" \
+                          -tu "$LTTNG_TOOLS_REPO" \
+                          -uu "$LTTNG_UST_REPO" \
                           -tc "$LTTNG_TOOLS_COMMIT_ID" \
                           -uc "$LTTNG_UST_COMMIT_ID" \
                           -id "$BUILD_TAG"
index cdcd42fcb52e6fb89b669371efa1285caa22662e..16fc925cd5c1f85c2c634dd08047f1fe8d68e946 100644 (file)
@@ -29,6 +29,8 @@ python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \
                           -j "$JOB_NAME" \
                           -k "$S3_URL_KERNEL_IMAGE" \
                           -lm "$S3_URL_LTTNG_MODULES" \
+                          -tu "$LTTNG_TOOLS_REPO" \
+                          -uu "$LTTNG_UST_REPO" \
                           -tc "$LTTNG_TOOLS_COMMIT_ID" \
                           -uc "$LTTNG_UST_COMMIT_ID" \
                           -id "$BUILD_TAG"
This page took 0.025801 seconds and 4 git commands to generate.