Преглед на файлове

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 <richard.purdie@linuxfoundation.org>
Richard Purdie преди 8 години
родител
ревизия
6069175e9b
променени са 9 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 1 1
      meta/files/ext-sdk-prepare.py
  2. 1 1
      meta/lib/oeqa/runexported.py
  3. 1 1
      scripts/cleanup-workdir
  4. 1 1
      scripts/combo-layer
  5. 1 1
      scripts/devtool
  6. 1 1
      scripts/oe-publish-sdk
  7. 1 1
      scripts/oe-selftest
  8. 1 1
      scripts/recipetool
  9. 1 1
      scripts/test-remote-image

+ 1 - 1
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)

+ 1 - 1
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)

+ 1 - 1
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)

+ 1 - 1
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)

+ 1 - 1
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)

+ 1 - 1
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)

+ 1 - 1
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()

+ 1 - 1
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)

+ 1 - 1
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)