nixosTests.cgit: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-04 21:08:27 +02:00
parent 6828c027d1
commit 33f2784b7c
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 96 additions and 98 deletions

View file

@ -294,7 +294,7 @@ in
] ./ceph-single-node-bluestore-dmcrypt.nix { }; ] ./ceph-single-node-bluestore-dmcrypt.nix { };
certmgr = handleTest ./certmgr.nix { }; certmgr = handleTest ./certmgr.nix { };
cfssl = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cfssl.nix { }; cfssl = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cfssl.nix { };
cgit = handleTest ./cgit.nix { }; cgit = runTest ./cgit.nix;
charliecloud = handleTest ./charliecloud.nix { }; charliecloud = handleTest ./charliecloud.nix { };
chromadb = runTest ./chromadb.nix; chromadb = runTest ./chromadb.nix;
chromium = (handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./chromium.nix { }).stable or { }; chromium = (handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./chromium.nix { }).stable or { };

View file

@ -1,12 +1,11 @@
import ./make-test-python.nix ( { pkgs, ... }:
{ pkgs, ... }: let
let
robotsTxt = pkgs.writeText "cgit-robots.txt" '' robotsTxt = pkgs.writeText "cgit-robots.txt" ''
User-agent: * User-agent: *
Disallow: / Disallow: /
''; '';
in in
{ {
name = "cgit"; name = "cgit";
meta = with pkgs.lib.maintainers; { meta = with pkgs.lib.maintainers; {
maintainers = [ schnusch ]; maintainers = [ schnusch ];
@ -109,5 +108,4 @@ import ./make-test-python.nix (
"curl -fsS 'http://localhost/%28c%29git/some-repo/about/' | grep -F 'cgit NixOS Test at'" "curl -fsS 'http://localhost/%28c%29git/some-repo/about/' | grep -F 'cgit NixOS Test at'"
) )
''; '';
} }
)