mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
validate: Fix the way we set the testsuite version
The testuite version should be 'master' during development and the version number on releases, during the pre-release cycle, there is no nano version, thus our detection handling was mistaking.
This commit is contained in:
parent
e158fc6bd1
commit
769a9f72e2
1 changed files with 3 additions and 5 deletions
|
@ -10,12 +10,10 @@ version_arr = gst_version.split('.')
|
|||
gst_version_major = version_arr[0]
|
||||
gst_version_minor = version_arr[1]
|
||||
gst_version_micro = version_arr[2]
|
||||
if version_arr.length() == 4
|
||||
gst_version_nano = version_arr[3]
|
||||
TESTSUITE_VERSION = 'master'
|
||||
else
|
||||
gst_version_nano = 0
|
||||
if gst_version_minor.to_int().is_even()
|
||||
TESTSUITE_VERSION = '@0@.@1@'.format(gst_version_major, gst_version_minor)
|
||||
else
|
||||
TESTSUITE_VERSION = 'master'
|
||||
endif
|
||||
|
||||
apiversion = '1.0'
|
||||
|
|
Loading…
Reference in a new issue