[u-boot-test-hooks PATCH 1/3] labgrid: Deal with strange Python error
Simon Glass
sjg at chromium.org
Fri Feb 21 21:32:40 CET 2025
Add a way to work around an unexplained Python message which appears
sometimes with Python 3.12.3
Make the file executable while we are here.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
bin/getrole.labgrid-sjg | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
mode change 100644 => 100755 bin/getrole.labgrid-sjg
diff --git a/bin/getrole.labgrid-sjg b/bin/getrole.labgrid-sjg
old mode 100644
new mode 100755
index 52fc3ce..7cef0a5
--- a/bin/getrole.labgrid-sjg
+++ b/bin/getrole.labgrid-sjg
@@ -21,5 +21,14 @@
[ -n "${do_configure}" ] && config_arg=",config_file"
+# The following spurious output is present with Python 3.12 on Ubuntu 24.04 so
+# use a redirection to drop it:
+
+# Error in sys.excepthook:
+#
+# Original exception was:
+#
+
exec labgrid-client -r "${target}" -a query -n \
- UBootProviderDriver:board,board_extra,source_dir,build_dir,build_dir_extra${config_arg}
+ UBootProviderDriver:board,board_extra,source_dir,build_dir,build_dir_extra${config_arg} \
+ 2>/dev/null
--
2.43.0
More information about the U-Boot
mailing list