]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove attempt at env handling in elf/tst-rtld-list-diagnostics.py
authorFlorian Weimer <fweimer@redhat.com>
Fri, 9 Feb 2024 15:16:08 +0000 (16:16 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 9 Feb 2024 15:16:33 +0000 (16:16 +0100)
Instead, let the system shell parse the whole thing and invoke the env
command.

elf/tst-rtld-list-diagnostics.py

index 9e70e74bf88718b07c8824a3f5c1b4e4409cecc9..024bd8c320f9b7c5ac6cce308f712f838adcfb94 100644 (file)
@@ -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)