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>
This commit is contained in:
Richard Purdie 2016-03-31 12:46:38 +01:00
parent 31681346a7
commit 51217057d1
3 changed files with 3 additions and 3 deletions

View File

@ -151,6 +151,6 @@ if __name__ == "__main__":
except Exception:
ret = 1
import traceback
traceback.print_exc(5)
traceback.print_exc()
sys.exit(ret)

View File

@ -395,5 +395,5 @@ if __name__ == "__main__":
except Exception:
ret = 1
import traceback
traceback.print_exc(5)
traceback.print_exc()
sys.exit(ret)

View File

@ -146,6 +146,6 @@ if __name__ == "__main__":
except Exception:
ret = 1
import traceback
traceback.print_exc(5)
traceback.print_exc()
sys.exit(ret)