autotest: fixed git hash parsing

This commit is contained in:
Andrew Tridgell 2012-02-13 18:02:35 +11:00
parent 74bbc72b11
commit 669516cb15

View File

@ -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 = []