From: Simon Glass Date: Thu, 28 Jul 2016 02:33:00 +0000 (-0600) Subject: buildman: Fix the 'help' test to use the correct path X-Git-Tag: v2016.09-rc2~150 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd6f5d98de58723702f01a660a16269c54e2992e;p=u-boot buildman: Fix the 'help' test to use the correct path When buildman is run via a symlink, this test fails. Fix it to work the same way as buildman itself. Signed-off-by: Simon Glass --- diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index a0bd46cbfb..d439e17db6 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -180,7 +180,7 @@ class TestFunctional(unittest.TestCase): self._base_dir = tempfile.mkdtemp() self._git_dir = os.path.join(self._base_dir, 'src') self._buildman_pathname = sys.argv[0] - self._buildman_dir = os.path.dirname(sys.argv[0]) + self._buildman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) command.test_result = self._HandleCommand self.setupToolchains() self._toolchains.Add('arm-gcc', test=False)