Merge pull request 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 = passthru.tests =
{ {
inherit ollama; inherit ollama;
service = nixosTests.ollama;
version = testers.testVersion { version = testers.testVersion {
inherit version; inherit version;
package = ollama; package = ollama;
@ -221,6 +220,7 @@ goBuild (
} }
// lib.optionalAttrs stdenv.isLinux { // lib.optionalAttrs stdenv.isLinux {
inherit ollama-rocm ollama-cuda; inherit ollama-rocm ollama-cuda;
service = nixosTests.ollama;
service-cuda = nixosTests.ollama-cuda; service-cuda = nixosTests.ollama-cuda;
service-rocm = nixosTests.ollama-rocm; service-rocm = nixosTests.ollama-rocm;
}; };