From: Simon Glass Date: Wed, 27 Jul 2016 20:33:00 -0600 Subject: [U-Boot] [PATCH v2 03/11] buildman: Fix the 'help' test to use the correct path In-Reply-To: <1469673188-15834-1-git-send-email-sjg@chromium.org> References: <1469673188-15834-1-git-send-email-sjg@chromium.org> Message-ID: <1469673188-15834-4-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: None tools/buildman/func_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index a0bd46c..d439e17 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) -- 2.8.0.rc3.226.g39d4020