Merge pull request #334391 from abysssol/ollama-test-condition

ollama: only run service test on linux
This commit is contained in:
Pol Dellaiera 2024-08-13 20:42:40 +02:00 committed by GitHub
commit d2e71921a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,7 +213,6 @@ goBuild (
passthru.tests =
{
inherit ollama;
service = nixosTests.ollama;
version = testers.testVersion {
inherit version;
package = ollama;
@ -221,6 +220,7 @@ goBuild (
}
// lib.optionalAttrs stdenv.isLinux {
inherit ollama-rocm ollama-cuda;
service = nixosTests.ollama;
service-cuda = nixosTests.ollama-cuda;
service-rocm = nixosTests.ollama-rocm;
};