mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target: Expose hostid as target property
This commit is contained in:
parent
b6d1863e77
commit
2a633b783a
@ -135,6 +135,10 @@ class Target(object):
|
|||||||
def kernel_version(self):
|
def kernel_version(self):
|
||||||
return KernelVersion(self.execute('{} uname -r -v'.format(quote(self.busybox))).strip())
|
return KernelVersion(self.execute('{} uname -r -v'.format(quote(self.busybox))).strip())
|
||||||
|
|
||||||
|
@property
|
||||||
|
def hostid(self):
|
||||||
|
return int(self.execute('{} hostid'.format(self.busybox)).strip(), 16)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def os_version(self): # pylint: disable=no-self-use
|
def os_version(self): # pylint: disable=no-self-use
|
||||||
return {}
|
return {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user