public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] elf: Remove attempt at env handling in elf/tst-rtld-list-diagnostics.py
@ 2024-02-09 15:16 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2024-02-09 15:16 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=15de3d17e1d9da5d38efb0a87a82efbc5bda732d

commit 15de3d17e1d9da5d38efb0a87a82efbc5bda732d
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Feb 9 16:16:08 2024 +0100

    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.

Diff:
---
 elf/tst-rtld-list-diagnostics.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/elf/tst-rtld-list-diagnostics.py b/elf/tst-rtld-list-diagnostics.py
index 9e70e74bf8..024bd8c320 100644
--- a/elf/tst-rtld-list-diagnostics.py
+++ b/elf/tst-rtld-list-diagnostics.py
@@ -222,7 +222,7 @@ else:
 def parse_diagnostics(cmd):
     global errors
     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':
         print('error: ld.so output does not end in newline')
         errors += 1
@@ -293,8 +293,7 @@ def main(argv):
     if opts.manual:
         check_consistency_with_manual(opts.manual)
 
-    # Remove the initial 'env' command.
-    parse_diagnostics(opts.command.split()[1:])
+    parse_diagnostics(opts.command)
 
     if errors:
         sys.exit(1)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-09 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-09 15:16 [glibc] elf: Remove attempt at env handling in elf/tst-rtld-list-diagnostics.py Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).