summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-31 12:46:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-31 23:01:36 +0100
commitc37d5426b1872d29347c1fecd9bda7b455fa15e0 (patch)
tree6a8732457ba5027da861ad1bcd0a35a4ad2ebd74 /scripts
parent8049f25e9cf1cc9277851fb8ce3ed366588975da (diff)
downloadpoky-c37d5426b1872d29347c1fecd9bda7b455fa15e0.tar.gz
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 OE-Core rev: 6069175e9bb97ace100bb5e99b6104d33163a3a2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cleanup-workdir2
-rwxr-xr-xscripts/combo-layer2
-rwxr-xr-xscripts/devtool2
-rwxr-xr-xscripts/oe-publish-sdk2
-rwxr-xr-xscripts/oe-selftest2
-rwxr-xr-xscripts/recipetool2
-rwxr-xr-xscripts/test-remote-image2
7 files changed, 7 insertions, 7 deletions
diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
index a7f5a3a667..01ebd526e3 100755
--- a/scripts/cleanup-workdir
+++ b/scripts/cleanup-workdir
@@ -194,5 +194,5 @@ if __name__ == '__main__':
194 except Exception: 194 except Exception:
195 ret = 2 195 ret = 2
196 import traceback 196 import traceback
197 traceback.print_exc(3) 197 traceback.print_exc()
198 sys.exit(ret) 198 sys.exit(ret)
diff --git a/scripts/combo-layer b/scripts/combo-layer
index 09a53a27e4..91270415fc 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -920,5 +920,5 @@ if __name__ == "__main__":
920 except Exception: 920 except Exception:
921 ret = 1 921 ret = 1
922 import traceback 922 import traceback
923 traceback.print_exc(5) 923 traceback.print_exc()
924 sys.exit(ret) 924 sys.exit(ret)
diff --git a/scripts/devtool b/scripts/devtool
index 06e91b7591..e1198b1369 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -318,5 +318,5 @@ if __name__ == "__main__":
318 except Exception: 318 except Exception:
319 ret = 1 319 ret = 1
320 import traceback 320 import traceback
321 traceback.print_exc(5) 321 traceback.print_exc()
322 sys.exit(ret) 322 sys.exit(ret)
diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index 1729a0da4a..2b6e9bc21c 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -150,5 +150,5 @@ if __name__ == "__main__":
150 except Exception: 150 except Exception:
151 ret = 1 151 ret = 1
152 import traceback 152 import traceback
153 traceback.print_exc(5) 153 traceback.print_exc()
154 sys.exit(ret) 154 sys.exit(ret)
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 9b61bfaddd..9b29ae0b42 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -630,7 +630,7 @@ if __name__ == "__main__":
630 except Exception: 630 except Exception:
631 ret = 1 631 ret = 1
632 import traceback 632 import traceback
633 traceback.print_exc(5) 633 traceback.print_exc()
634 finally: 634 finally:
635 remove_include() 635 remove_include()
636 remove_inc_files() 636 remove_inc_files()
diff --git a/scripts/recipetool b/scripts/recipetool
index 1198cc25d7..6c66487569 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -117,5 +117,5 @@ if __name__ == "__main__":
117 except Exception: 117 except Exception:
118 ret = 1 118 ret = 1
119 import traceback 119 import traceback
120 traceback.print_exc(5) 120 traceback.print_exc()
121 sys.exit(ret) 121 sys.exit(ret)
diff --git a/scripts/test-remote-image b/scripts/test-remote-image
index 97d03d7a78..9c5b0158d5 100755
--- a/scripts/test-remote-image
+++ b/scripts/test-remote-image
@@ -357,5 +357,5 @@ if __name__ == "__main__":
357 except Exception: 357 except Exception:
358 ret = 1 358 ret = 1
359 import traceback 359 import traceback
360 traceback.print_exc(5) 360 traceback.print_exc()
361 sys.exit(ret) 361 sys.exit(ret)