Skip to content

Commit

Permalink
Cosmetic changes to docker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ldowen committed Nov 6, 2024
1 parent 00c59ac commit f6049e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ats/atsMachines/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ats.atsut import RUNNING, TIMEDOUT

class Docker (machines.Machine):
"Typical Linux machine."
"Typical Linux machine. To use, set MACHINE_TYPE environment variable to docker"
def init (self) :
self.npMax = 1

Expand Down Expand Up @@ -48,12 +48,11 @@ def examineOptions(self, options):
# machines.py sets this
self.npMax = self.numberTestsRunningMax
self.mpiexe = options.mpiexe
self.mpiexe = options.mpiexe
self.nompi = options.nompi
if (self.npMax < 2 and self.mpiexe):
terminal("WARNING: npMax should be > 1 to use mpiexe")
if (self.mpiexe and self.nompi):
terminal("WARNING: Setting --nompi and --mpiexe contradicts")
terminal("WARNING: --mpiexe will be ignored when --nompi")

def calculateCommandList(self, test):
"""Prepare for run of executable using a suitable command. First we get the plain command
Expand Down

0 comments on commit f6049e9

Please sign in to comment.