autotest: fixed the directory that the git hash is fetched in

This commit is contained in:
Andrew Tridgell 2012-02-14 09:06:24 +11:00
parent df2ef6ff47
commit 2f1f5f14f5
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class TestResults(object):
'''test results class'''
def __init__(self):
self.date = time.asctime()
self.githash = util.run_cmd('git rev-parse HEAD', output=True).strip()
self.githash = util.run_cmd('git rev-parse HEAD', output=True, dir=util.reltopdir('.')).strip()
self.tests = []
self.files = []