Changeset b053083 for tests/pybin


Ignore:
Timestamp:
Mar 11, 2022, 10:54:10 AM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
4f6dda0
Parents:
cc9b520
Message:

Fixed error handling for core_info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    rcc9b520 rb053083  
    486486
    487487        try:
    488                 return sh('gdb', '-n', path, core, '-batch', '-x', cmd, output_file=subprocess.PIPE)
     488                ret, out, err = sh('gdb', '-n', path, core, '-batch', '-x', cmd, output_file=subprocess.PIPE)
     489                if ret == 0:
     490                        return 0, out
     491                else:
     492                        return 1, err
    489493        except:
    490494                return 1, "ERR Could not read core with gdb"
Note: See TracChangeset for help on using the changeset viewer.