Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Useless use of xargs.
[simgrid.git] / teshsuite / smpi / MBI / simgrid.py
index 947bcce..2119d40 100644 (file)
@@ -31,7 +31,7 @@ class Tool(mbi.AbstractTool):
         os.chdir(here)
 
 
-    def ensure_image(self):
+    def ensure_image(self, params=None, dockerparams=None):
         mbi.AbstractTool.ensure_image(self, "-x simgrid")
 
     def setup(self, rootdir):
@@ -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):
@@ -76,7 +76,7 @@ class Tool(mbi.AbstractTool):
         with open(f'{cachefile}.txt' if os.path.exists(f'{cachefile}.txt') else f'logs/simgrid/{cachefile}.txt', 'r') as infile:
             output = infile.read()
 
-        if re.search('Compilation of .*? raised an error \(retcode: ', output):
+        if re.search(r'Compilation of .*? raised an error \(retcode: ', output):
             return 'UNIMPLEMENTED'
 
         if re.search('MBI_MSG_RACE', output):