From 6069175e9bb97ace100bb5e99b6104d33163a3a2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 31 Mar 2016 12:46:38 +0100 Subject: [PATCH] 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] Signed-off-by: Richard Purdie --- meta/files/ext-sdk-prepare.py | 2 +- meta/lib/oeqa/runexported.py | 2 +- scripts/cleanup-workdir | 2 +- scripts/combo-layer | 2 +- scripts/devtool | 2 +- scripts/oe-publish-sdk | 2 +- scripts/oe-selftest | 2 +- scripts/recipetool | 2 +- scripts/test-remote-image | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/meta/files/ext-sdk-prepare.py b/meta/files/ext-sdk-prepare.py index 78876961539..80db8bb16a2 100644 --- a/meta/files/ext-sdk-prepare.py +++ b/meta/files/ext-sdk-prepare.py @@ -94,5 +94,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/meta/lib/oeqa/runexported.py b/meta/lib/oeqa/runexported.py index dba0d7aec1e..e9a29126c82 100755 --- a/meta/lib/oeqa/runexported.py +++ b/meta/lib/oeqa/runexported.py @@ -140,5 +140,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir index a7f5a3a667e..01ebd526e36 100755 --- a/scripts/cleanup-workdir +++ b/scripts/cleanup-workdir @@ -194,5 +194,5 @@ if __name__ == '__main__': except Exception: ret = 2 import traceback - traceback.print_exc(3) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/combo-layer b/scripts/combo-layer index 09a53a27e4b..91270415fc5 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer @@ -920,5 +920,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/devtool b/scripts/devtool index 06e91b75914..e1198b1369a 100755 --- a/scripts/devtool +++ b/scripts/devtool @@ -318,5 +318,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk index 1729a0da4a7..2b6e9bc21c3 100755 --- a/scripts/oe-publish-sdk +++ b/scripts/oe-publish-sdk @@ -150,5 +150,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 9b61bfaddd7..9b29ae0b423 100755 --- a/scripts/oe-selftest +++ b/scripts/oe-selftest @@ -630,7 +630,7 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() finally: remove_include() remove_inc_files() diff --git a/scripts/recipetool b/scripts/recipetool index 1198cc25d7a..6c664875698 100755 --- a/scripts/recipetool +++ b/scripts/recipetool @@ -117,5 +117,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) diff --git a/scripts/test-remote-image b/scripts/test-remote-image index 97d03d7a780..9c5b0158d5b 100755 --- a/scripts/test-remote-image +++ b/scripts/test-remote-image @@ -357,5 +357,5 @@ if __name__ == "__main__": except Exception: ret = 1 import traceback - traceback.print_exc(5) + traceback.print_exc() sys.exit(ret) -- 2.47.2