From: Arnaud Giersch Date: Sun, 5 Jun 2022 10:34:02 +0000 (+0200) Subject: Useless use of xargs. X-Git-Tag: v3.32~199 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/18062c1b370648be6d5f806539c8f14a2ffc5964?ds=sidebyside Useless use of xargs. --- diff --git a/teshsuite/smpi/MBI/simgrid.py b/teshsuite/smpi/MBI/simgrid.py index fb5d27f61c..2119d40f8e 100644 --- a/teshsuite/smpi/MBI/simgrid.py +++ b/teshsuite/smpi/MBI/simgrid.py @@ -64,7 +64,7 @@ class Tool(mbi.AbstractTool): batchinfo=batchinfo) def teardown(self): - subprocess.run("find -type f -a -executable | xargs rm -f", shell=True, check=True) # Remove generated cruft (binary files) + subprocess.run("find -type f -a -executable -exec rm -f {} +", shell=True, check=True) # Remove generated cruft (binary files) subprocess.run("rm -f smpitmp-* core", shell=True, check=True) def parse(self, cachefile):