File: 0002-Fix-subprocess-arguments.patch

package info (click to toggle)
pyzoltan 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,160 kB
  • sloc: python: 704; ansic: 172; sh: 36; makefile: 20
file content (24 lines) | stat: -rw-r--r-- 925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Tue, 19 Aug 2025 10:25:37 +0000
Subject: Fix subprocess arguments

---
 pyzoltan/tools/run_parallel_script.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyzoltan/tools/run_parallel_script.py b/pyzoltan/tools/run_parallel_script.py
index c77861b..62ca090 100644
--- a/pyzoltan/tools/run_parallel_script.py
+++ b/pyzoltan/tools/run_parallel_script.py
@@ -35,9 +35,9 @@ def run(filename, args=None, nprocs=2, timeout=30.0, path=None,
         args = []
     file_path = abspath(join(path, filename))
     extra = ['--oversubscribe'] if mpi_extra is None else mpi_extra
-    cmd = extra + [sys.executable, file_path] + args
+    cmd = [sys.executable, file_path] + args
     if nprocs > 1:
-        cmd = ['mpiexec', '-n', str(nprocs)] + cmd
+        cmd = ['mpiexec', '-n', str(nprocs)] + extra + cmd
 
     print('running test:', cmd)