Skip to content

Commit

Permalink
Stop xdist restarting workers if they won't start
Browse files Browse the repository at this point in the history
This is mostly because of a problem with SEGV on import in C++
code which will never work. Without this xdist keeps creating workers
until the process runs out of resources.
  • Loading branch information
timj committed Oct 13, 2017
1 parent 6144ab0 commit c730cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/sconsUtils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def runPythonTests(self, pyList):
njobs = self._env.GetOption("num_jobs")
print("Running pytest with {} process{}".format(njobs, "" if njobs == 1 else "es"))
if njobs > 1:
interpreter = interpreter + " -n {}".format(njobs)
interpreter = interpreter + " --max-slave-restart=0 -n {}".format(njobs)

# Remove target so that we always trigger pytest
if os.path.exists(target):
Expand Down

0 comments on commit c730cca

Please sign in to comment.