Restrict gmxapi pytest tests to `-nt 2`
[alexxy/gromacs.git] / python_packaging / src / test / test_mdrun.py
index e18d2bbe8b00c1d7545ce4c8ca8b56bc67937ee5..132267291ccadcf4894ce6742d1904340fffbf65 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2019, by the GROMACS development team, led by
+# Copyright (c) 2019,2020, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -48,6 +48,12 @@ import pytest
 
 import gmxapi as gmx
 
+# TODO: (#3573) Normalize the handling of run-time arguments.
+from gmxapi.simulation.mdrun import ResourceManager as _ResourceManager
+# Note that *threads* argument causes errors for MPI-enabled GROMACS.
+# Ref #3563 and #3573
+_ResourceManager.mdrun_kwargs = {'threads': 2}
+
 # Configure the `logging` module before proceeding any further.
 gmx.logger.setLevel(logging.WARNING)