diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-31 12:47:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-31 23:01:38 +0100 |
commit | 31681346a70d03e94ba35344ce12205b5269f451 (patch) | |
tree | 307de247d9b1f53bc20bc860ce09f2fcbf3149be | |
parent | 88ea0b9613be73605dcbfb1666cde9b927d9e8b5 (diff) | |
download | poky-31681346a70d03e94ba35344ce12205b5269f451.tar.gz |
bitbake: bitbake: 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]
(Bitbake rev: 5549748a200b5df259fc7352477ec59471b87b2f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/bitbake-layers | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-prserv | 2 | ||||
-rwxr-xr-x | bitbake/bin/image-writer | 2 | ||||
-rwxr-xr-x | bitbake/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index fb130444b1..d47a6690e6 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -1068,5 +1068,5 @@ if __name__ == "__main__": | |||
1068 | except Exception: | 1068 | except Exception: |
1069 | ret = 1 | 1069 | ret = 1 |
1070 | import traceback | 1070 | import traceback |
1071 | traceback.print_exc(5) | 1071 | traceback.print_exc() |
1072 | sys.exit(ret) | 1072 | sys.exit(ret) |
diff --git a/bitbake/bin/bitbake-prserv b/bitbake/bin/bitbake-prserv index a8d7acb4c2..03821446b7 100755 --- a/bitbake/bin/bitbake-prserv +++ b/bitbake/bin/bitbake-prserv | |||
@@ -50,6 +50,6 @@ if __name__ == "__main__": | |||
50 | except Exception: | 50 | except Exception: |
51 | ret = 1 | 51 | ret = 1 |
52 | import traceback | 52 | import traceback |
53 | traceback.print_exc(5) | 53 | traceback.print_exc() |
54 | sys.exit(ret) | 54 | sys.exit(ret) |
55 | 55 | ||
diff --git a/bitbake/bin/image-writer b/bitbake/bin/image-writer index 7d7116780b..e30ab45e31 100755 --- a/bitbake/bin/image-writer +++ b/bitbake/bin/image-writer | |||
@@ -119,4 +119,4 @@ if __name__ == '__main__': | |||
119 | gtk.main() | 119 | gtk.main() |
120 | except Exception: | 120 | except Exception: |
121 | import traceback | 121 | import traceback |
122 | traceback.print_exc(3) | 122 | traceback.print_exc() |
diff --git a/bitbake/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py b/bitbake/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py index 2b312cb927..754636f0fa 100755 --- a/bitbake/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py +++ b/bitbake/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py | |||
@@ -146,7 +146,7 @@ if __name__ == "__main__": | |||
146 | except: | 146 | except: |
147 | ret = 1 | 147 | ret = 1 |
148 | import traceback | 148 | import traceback |
149 | traceback.print_exc(5) | 149 | traceback.print_exc() |
150 | finally: | 150 | finally: |
151 | if os.getenv('TOASTER_SUITE'): | 151 | if os.getenv('TOASTER_SUITE'): |
152 | del os.environ['TOASTER_SUITE'] | 152 | del os.environ['TOASTER_SUITE'] |