nixosTests.cri-o: handleTest -> runTest

Changed files
+16 -21
nixos
+1 -1
nixos/tests/all-tests.nix
···
coturn = runTest ./coturn.nix;
couchdb = runTest ./couchdb.nix;
crabfit = runTest ./crabfit.nix;
-
cri-o = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./cri-o.nix { };
cryptpad = runTest ./cryptpad.nix;
cups-pdf = runTest ./cups-pdf.nix;
curl-impersonate = runTest ./curl-impersonate.nix;
···
coturn = runTest ./coturn.nix;
couchdb = runTest ./couchdb.nix;
crabfit = runTest ./crabfit.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;
+15 -20
nixos/tests/cri-o.nix
···
-
# 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;
-
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"
-
)
-
'';
-
}
-
)
···
+
{ lib, ... }:
+
{
+
name = "cri-o";
+
meta.maintainers = lib.teams.podman.members;
+
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"
+
)
+
'';
+
}