mirror of https://github.com/ArduPilot/ardupilot
autotest: fixed git hash parsing
This commit is contained in:
parent
550b0be231
commit
6b8b3e2287
|
@ -193,7 +193,7 @@ class TestResults(object):
|
|||
'''test results class'''
|
||||
def __init__(self):
|
||||
self.date = time.asctime()
|
||||
self.githash = util.loadfile(util.reltopdir('.git/refs/heads/master'))
|
||||
self.githash = util.run_cmd('git rev-parse HEAD', output=True)
|
||||
self.tests = []
|
||||
self.files = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue