diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 821c2c8cde..17cc5bf9b6 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -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 = []