home-assistant: inherit NIX_BUILD_CORES for test suite
"auto" will impurely detect how many threads are available. Running the test suite with 128 threads will also consume about 40GB of ram.
This commit is contained in:
@@ -743,7 +743,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
|
||||
pytestFlagsArray = [
|
||||
# parallelize test run
|
||||
"--numprocesses auto"
|
||||
"--numprocesses $NIX_BUILD_CORES"
|
||||
# assign tests grouped by file to workers
|
||||
"--dist loadfile"
|
||||
# retry racy tests that end in "RuntimeError: Event loop is closed"
|
||||
|
||||
Reference in New Issue
Block a user