Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Useless use of xargs.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 5 Jun 2022 10:34:02 +0000 (12:34 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 5 Jun 2022 12:28:40 +0000 (14:28 +0200)
teshsuite/smpi/MBI/simgrid.py

index fb5d27f..2119d40 100644 (file)
@@ -64,7 +64,7 @@ class Tool(mbi.AbstractTool):
             batchinfo=batchinfo)
 
     def teardown(self):
             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):
         subprocess.run("rm -f smpitmp-* core", shell=True, check=True)
 
     def parse(self, cachefile):