0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixosTests.cri-o: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-06-07 20:52:33 +08:00
parent 4257e82bcf
commit 2dd453b74b
No known key found for this signature in database
GPG key ID: ED1807251A7DA08F
2 changed files with 16 additions and 21 deletions

View file

@ -384,7 +384,7 @@ in
coturn = runTest ./coturn.nix;
couchdb = runTest ./couchdb.nix;
crabfit = runTest ./crabfit.nix;
cri-o = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cri-o.nix { };
cri-o = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./cri-o.nix;
cryptpad = runTest ./cryptpad.nix;
cups-pdf = runTest ./cups-pdf.nix;
curl-impersonate = runTest ./curl-impersonate.nix;

View file

@ -1,22 +1,17 @@
# This test runs CRI-O and verifies via critest
import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "cri-o";
meta.maintainers = with pkgs.lib; teams.podman.members;
{ lib, ... }:
{
name = "cri-o";
meta.maintainers = lib.teams.podman.members;
nodes = {
crio = {
virtualisation.cri-o.enable = true;
};
};
nodes.crio = {
virtualisation.cri-o.enable = true;
};
testScript = ''
start_all()
crio.wait_for_unit("crio.service")
crio.succeed(
"critest --ginkgo.focus='Runtime info' --runtime-endpoint unix:///var/run/crio/crio.sock"
)
'';
}
)
testScript = ''
start_all()
crio.wait_for_unit("crio.service")
crio.succeed(
"critest --ginkgo.focus='Runtime info' --runtime-endpoint unix:///var/run/crio/crio.sock"
)
'';
}