[oe-commits] [bitbake] branch master-next updated: bitbake: Don't limit traceback lengths to arbitrary values

git at git.openembedded.org git at git.openembedded.org
Thu Mar 31 11:58:50 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
       new  5549748   bitbake: Don't limit traceback lengths to arbitrary values
5549748 is described below

commit 5549748a200b5df259fc7352477ec59471b87b2f
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Mar 31 12:47:13 2016 +0100

    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]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 bin/bitbake-layers                                        | 2 +-
 bin/bitbake-prserv                                        | 2 +-
 bin/image-writer                                          | 2 +-
 lib/toaster/contrib/tts/toasteruitest/run_toastertests.py | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index fb13044..d47a669 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -1068,5 +1068,5 @@ if __name__ == "__main__":
     except Exception:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     sys.exit(ret)
diff --git a/bin/bitbake-prserv b/bin/bitbake-prserv
index a8d7acb..0382144 100755
--- a/bin/bitbake-prserv
+++ b/bin/bitbake-prserv
@@ -50,6 +50,6 @@ if __name__ == "__main__":
     except Exception:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     sys.exit(ret)
 
diff --git a/bin/image-writer b/bin/image-writer
index 7d71167..e30ab45 100755
--- a/bin/image-writer
+++ b/bin/image-writer
@@ -119,4 +119,4 @@ if __name__ == '__main__':
         gtk.main()
     except Exception:
         import traceback
-        traceback.print_exc(3)
+        traceback.print_exc()
diff --git a/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py b/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py
index 2b312cb..754636f 100755
--- a/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py
+++ b/lib/toaster/contrib/tts/toasteruitest/run_toastertests.py
@@ -146,7 +146,7 @@ if __name__ == "__main__":
     except:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     finally:
         if os.getenv('TOASTER_SUITE'):
             del os.environ['TOASTER_SUITE']

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list