All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] buildman: don't fail --list-toolchains when toolchains fail
@ 2013-10-09 20:28 Stephen Warren
  2013-10-09 20:28 ` [U-Boot] [PATCH 2/2] buildman: make board selector argument a regex Stephen Warren
  2013-10-09 22:24 ` [U-Boot] [PATCH 1/2] buildman: don't fail --list-toolchains when toolchains fail Simon Glass
  0 siblings, 2 replies; 8+ messages in thread
From: Stephen Warren @ 2013-10-09 20:28 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

When a toolchain invocation fails, an exception is thrown but not caught
which then aborts the entire toolchain detection process. To solve this,
request that exceptions not be thrown, since the toolchain init code
already error-checks the command result. This solves e.g.:

         - found '/usr/bin/winegcc'
Traceback (most recent call last):
...
Exception: Error running '/usr/bin/winegcc --version'

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 tools/buildman/toolchain.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index a292338..7effb88 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -39,7 +39,7 @@ class Toolchain:
         # As a basic sanity check, run the C compiler with --version
         cmd = [fname, '--version']
         if test:
-            result = command.RunPipe([cmd], capture=True, env=env)
+            result = command.RunPipe([cmd], capture=True, env=env, raise_on_error=False)
             self.ok = result.return_code == 0
             if verbose:
                 print 'Tool chain test: ',
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-10-10 16:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-09 20:28 [U-Boot] [PATCH 1/2] buildman: don't fail --list-toolchains when toolchains fail Stephen Warren
2013-10-09 20:28 ` [U-Boot] [PATCH 2/2] buildman: make board selector argument a regex Stephen Warren
2013-10-09 22:28   ` Simon Glass
2013-10-09 22:24 ` [U-Boot] [PATCH 1/2] buildman: don't fail --list-toolchains when toolchains fail Simon Glass
2013-10-10 15:48   ` Stephen Warren
2013-10-10 15:50     ` Simon Glass
2013-10-10 16:04       ` Stephen Warren
2013-10-10 16:42         ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.