]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: Don't limit traceback lengths to arbitrary values
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Mar 2016 11:47:13 +0000 (12:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Mar 2016 11:57:58 +0000 (12:57 +0100)
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@linuxfoundation.org>
bin/bitbake-layers
bin/bitbake-prserv
bin/image-writer
lib/toaster/contrib/tts/toasteruitest/run_toastertests.py

index fb130444b13c626f0deb28ae4f5db13837f3d2bb..d47a6690e6a763ed728fa1f77acbf6f7b607a435 100755 (executable)
@@ -1068,5 +1068,5 @@ if __name__ == "__main__":
     except Exception:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     sys.exit(ret)
index a8d7acb4c2b80c8a9a05772af51d1880a0c12d4c..03821446b72d5c6e6d623e1201db3ad1e9c7864a 100755 (executable)
@@ -50,6 +50,6 @@ if __name__ == "__main__":
     except Exception:
         ret = 1
         import traceback
-        traceback.print_exc(5)
+        traceback.print_exc()
     sys.exit(ret)
 
index 7d7116780b188d4a113afcd0cf2c234262d18e50..e30ab45e31e707081b9b254e72d464ed367c2ddf 100755 (executable)
@@ -119,4 +119,4 @@ if __name__ == '__main__':
         gtk.main()
     except Exception:
         import traceback
-        traceback.print_exc(3)
+        traceback.print_exc()
index 2b312cb9277361fbfa6421afd0d0cfadc142b081..754636f0faa5f385bb19cea09fa05cab1c2d3b8c 100755 (executable)
@@ -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']