diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-31 12:46:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-31 23:01:38 +0100 |
commit | 51217057d12e375bada074daf6ab6c6112320c3e (patch) | |
tree | 50388ae282c0660076ea8a3cb50e3f61d2741c7b | |
parent | 31681346a70d03e94ba35344ce12205b5269f451 (diff) | |
download | poky-51217057d12e375bada074daf6ab6c6112320c3e.tar.gz |
scripts, lib: Don't limit traceback lengths to arbitrary values
There appears to have been a lot of copy and pasting of the code
which prints tracebacks upon failure and limits the stack trace to
5 entries. This obscures the real error and is very confusing to the user
it look me an age to work out why some tracebacks weren't useful.
This patch removes the limit, making tracebacks much more useful for
debugging.
[YOCTO #9230]
(From meta-yocto rev: 2f00b2605353b9757a40636870ad20ee70bcab9d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/yocto-bsp | 2 | ||||
-rwxr-xr-x | scripts/yocto-kernel | 2 | ||||
-rwxr-xr-x | scripts/yocto-layer | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/yocto-bsp b/scripts/yocto-bsp index 2d9453fbe8..82a050ebdc 100755 --- a/scripts/yocto-bsp +++ b/scripts/yocto-bsp | |||
@@ -151,6 +151,6 @@ if __name__ == "__main__": | |||
151 | except Exception: | 151 | except Exception: |
152 | ret = 1 | 152 | ret = 1 |
153 | import traceback | 153 | import traceback |
154 | traceback.print_exc(5) | 154 | traceback.print_exc() |
155 | sys.exit(ret) | 155 | sys.exit(ret) |
156 | 156 | ||
diff --git a/scripts/yocto-kernel b/scripts/yocto-kernel index c9b2821e00..daaad07520 100755 --- a/scripts/yocto-kernel +++ b/scripts/yocto-kernel | |||
@@ -395,5 +395,5 @@ if __name__ == "__main__": | |||
395 | except Exception: | 395 | except Exception: |
396 | ret = 1 | 396 | ret = 1 |
397 | import traceback | 397 | import traceback |
398 | traceback.print_exc(5) | 398 | traceback.print_exc() |
399 | sys.exit(ret) | 399 | sys.exit(ret) |
diff --git a/scripts/yocto-layer b/scripts/yocto-layer index 313d464b6e..356972ece8 100755 --- a/scripts/yocto-layer +++ b/scripts/yocto-layer | |||
@@ -146,6 +146,6 @@ if __name__ == "__main__": | |||
146 | except Exception: | 146 | except Exception: |
147 | ret = 1 | 147 | ret = 1 |
148 | import traceback | 148 | import traceback |
149 | traceback.print_exc(5) | 149 | traceback.print_exc() |
150 | sys.exit(ret) | 150 | sys.exit(ret) |
151 | 151 | ||