Message ID | 20220109184232.1620451-1-hjl.tools@gmail.com |
---|---|
State | Committed |
Commit | 7de501f9418bf099e7104b63b0e4423257981b14 |
Headers | show |
Series | Disable debuginfod in printer tests [BZ #28757] | expand |
Context | Check | Description |
---|---|---|
dj/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
dj/TryBot-32bit | success | Build for i686 |
* H. J. Lu via Libc-alpha: > diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py > index 6406e3bac7..38121697bc 100644 > --- a/scripts/test_printers_common.py > +++ b/scripts/test_printers_common.py > @@ -161,6 +161,17 @@ def init_test(test_bin, printer_files, printer_names): > printer files. > """ > > + # Disable debuginfod to avoid GDB messages like: > + # > + # This GDB supports auto-downloading debuginfo from the following URLs: > + # https://debuginfod.fedoraproject.org/ > + # Enable debuginfod for this session? (y or [n]) > + # > + try: > + test('set debuginfod enabled off') > + except Exception: > + pass This looks okay, based on the discussion in <https://bugzilla.redhat.com/show_bug.cgi?id=2026402>. The ignored exception should make this work on older GDB, too. Reviewed-by: Florian Weimer <fweimer@redhat.com> Thanks, Florian
diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py index 6406e3bac7..38121697bc 100644 --- a/scripts/test_printers_common.py +++ b/scripts/test_printers_common.py @@ -161,6 +161,17 @@ def init_test(test_bin, printer_files, printer_names): printer files. """ + # Disable debuginfod to avoid GDB messages like: + # + # This GDB supports auto-downloading debuginfo from the following URLs: + # https://debuginfod.fedoraproject.org/ + # Enable debuginfod for this session? (y or [n]) + # + try: + test('set debuginfod enabled off') + except Exception: + pass + # Load all the pretty printer files. We're assuming these are safe. for printer_file in printer_files: test('source {0}'.format(printer_file))