Fix: system-tests: stable version parsing is done to late
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 22 Jun 2021 15:07:55 +0000 (11:07 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 22 Jun 2021 15:07:55 +0000 (11:07 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/system-tests/lava2-submit.py

index dec07a92affb55b45e28a7289eb2255ccd41995d..281e9177a542841e6d1da608ae54ff59aef513ca 100644 (file)
@@ -127,6 +127,9 @@ def get_vlttng_cmd(
     """
     Return vlttng cmd to be used in the job template for setup.
     """
+
+    major_version, minor_version = parse_stable_version(lttng_version)
+
     urcu_profile = ""
     if lttng_version == 'master' or (major_version >= 2 and minor_version >= 11):
         urcu_profile = "urcu-master"
@@ -157,7 +160,6 @@ def get_vlttng_cmd(
             + ' --profile lttng-ust-no-man-pages'
         )
 
-    major_version, minor_version = parse_stable_version(lttng_version)
 
     if lttng_version == 'master' or (major_version >= 2 and minor_version >= 11):
         vlttng_cmd += (
This page took 0.043415 seconds and 4 git commands to generate.