aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-27 20:33:00 -0600
committerSimon Glass <sjg@chromium.org>2016-07-31 19:37:08 -0600
commitbd6f5d98de58723702f01a660a16269c54e2992e (patch)
treeee3027a8dec8666936c1b1a6ea79ec4ba4e92203 /tools
parent8e605a5e3e41861c4b1c55bc3b911abde2323939 (diff)
downloadu-boot-bd6f5d98de58723702f01a660a16269c54e2992e.zip
u-boot-bd6f5d98de58723702f01a660a16269c54e2992e.tar.gz
u-boot-bd6f5d98de58723702f01a660a16269c54e2992e.tar.bz2
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 <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/buildman/func_test.py2
1 files changed, 1 insertions, 1 deletions
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)