]> git.sur5r.net Git - u-boot/commitdiff
buildman: Fix the 'help' test to use the correct path
authorSimon Glass <sjg@chromium.org>
Thu, 28 Jul 2016 02:33:00 +0000 (20:33 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 1 Aug 2016 01:37:08 +0000 (19:37 -0600)
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 <sjg@chromium.org>
tools/buildman/func_test.py

index a0bd46cbfbed046726d9c37f69cb189d833c8d1d..d439e17db6c1e1f68bd2575d7cf914a7c45ea12f 100644 (file)
@@ -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)