Skip to content

Commit 62ff0bc

Browse files
committed
[Jupyter] if seq computation, run cases using 'trust datafile' instead of 'trust datafile 1'
1 parent 2f4a333 commit 62ff0bc

File tree

1 file changed

+4
-1
lines changed
  • Validation/Outils/trustutils/jupyter

1 file changed

+4
-1
lines changed

Validation/Outils/trustutils/jupyter/run.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,10 @@ def runCase(self, verbose=False):
449449
### Run Case ###
450450
err_file = self.dataFileName_ + ".err"
451451
out_file = self.dataFileName_ + ".out"
452-
cmd = "trust %s %s %s 2>%s 1>%s" % (self.dataFileName_, str(self.nbProcs_), self.execOptions, err_file, out_file)
452+
para = ""
453+
if self.nbProcs_ != 1:
454+
para = str(self.nbProcs_)
455+
cmd = "trust %s %s %s 2>%s 1>%s" % (self.dataFileName_, para, self.execOptions, err_file, out_file)
453456
output = subprocess.run(cmd, shell=True, executable="/bin/bash", stderr=subprocess.STDOUT)
454457
if verbose:
455458
print(cmd)

0 commit comments

Comments
 (0)