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:
Jonathan Ringer
2021-09-17 16:20:30 -07:00
parent 3c7d0449ad
commit b81ef19d94
+1 -1
View File
@@ -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"