mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 00:52:08 +00:00 
			
		
		
		
	fw/version: Add development tag to version
Add a development tag to the version format instead of using the revision field.
This commit is contained in:
		@@ -19,14 +19,16 @@ from collections import namedtuple
 | 
			
		||||
from subprocess import Popen, PIPE
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
VersionTuple = namedtuple('Version', ['major', 'minor', 'revision'])
 | 
			
		||||
VersionTuple = namedtuple('Version', ['major', 'minor', 'revision', 'dev'])
 | 
			
		||||
 | 
			
		||||
version = VersionTuple(3, 1, 1)
 | 
			
		||||
version = VersionTuple(3, 1, 1, 'dev1')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def get_wa_version():
 | 
			
		||||
    version_string = '{}.{}.{}'.format(
 | 
			
		||||
        version.major, version.minor, version.revision)
 | 
			
		||||
    if version.dev:
 | 
			
		||||
        version_string += '.{}'.format(version.dev)
 | 
			
		||||
    return version_string
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user