aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-03 21:09:15 -0600
committerSimon Glass <sjg@chromium.org>2021-11-13 08:16:39 -0700
commit2fb2cd75f3c2d8bdd8fc19f7a4291879ff89d840 (patch)
tree3390f4ecfde18d923ff502adf1d4d9ef0c58fc30 /tools
parente5eaf810f94d9fe3d091b3591552def2e4bf4bae (diff)
downloadu-boot-2fb2cd75f3c2d8bdd8fc19f7a4291879ff89d840.zip
u-boot-2fb2cd75f3c2d8bdd8fc19f7a4291879ff89d840.tar.gz
u-boot-2fb2cd75f3c2d8bdd8fc19f7a4291879ff89d840.tar.bz2
binman: Report an error if test files fail to compile
At present any error from the 'make' command is silently swallowed by the test system. Fix this by showing it when detected. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/elf_test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/binman/elf_test.py b/tools/binman/elf_test.py
index 7a12801..bcccd78 100644
--- a/tools/binman/elf_test.py
+++ b/tools/binman/elf_test.py
@@ -70,8 +70,12 @@ def BuildElfTestFiles(target_dir):
# correctly. So drop any make flags here.
if 'MAKEFLAGS' in os.environ:
del os.environ['MAKEFLAGS']
- tools.Run('make', '-C', target_dir, '-f',
- os.path.join(testdir, 'Makefile'), 'SRC=%s/' % testdir)
+ try:
+ tools.Run('make', '-C', target_dir, '-f',
+ os.path.join(testdir, 'Makefile'), 'SRC=%s/' % testdir)
+ except ValueError as e:
+ # The test system seems to suppress this in a strange way
+ print(e)
class TestElf(unittest.TestCase):