mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
elf: Remove attempt at env handling in elf/tst-rtld-list-diagnostics.py
Instead, let the system shell parse the whole thing and invoke the env command.
This commit is contained in:
parent
1bc61cf8e0
commit
15de3d17e1
@ -222,7 +222,7 @@ else:
|
|||||||
def parse_diagnostics(cmd):
|
def parse_diagnostics(cmd):
|
||||||
global errors
|
global errors
|
||||||
diag_out = subprocess.run(cmd, stdout=subprocess.PIPE, check=True,
|
diag_out = subprocess.run(cmd, stdout=subprocess.PIPE, check=True,
|
||||||
universal_newlines=True).stdout
|
universal_newlines=True, shell=True).stdout
|
||||||
if diag_out[-1] != '\n':
|
if diag_out[-1] != '\n':
|
||||||
print('error: ld.so output does not end in newline')
|
print('error: ld.so output does not end in newline')
|
||||||
errors += 1
|
errors += 1
|
||||||
@ -293,8 +293,7 @@ def main(argv):
|
|||||||
if opts.manual:
|
if opts.manual:
|
||||||
check_consistency_with_manual(opts.manual)
|
check_consistency_with_manual(opts.manual)
|
||||||
|
|
||||||
# Remove the initial 'env' command.
|
parse_diagnostics(opts.command)
|
||||||
parse_diagnostics(opts.command.split()[1:])
|
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user