nixosTests.scaphandre: handleTest -> runTest

Changed files
+14 -18
nixos
+1 -1
nixos/tests/all-tests.nix
···
sane = runTest ./sane.nix;
sanoid = runTest ./sanoid.nix;
saunafs = runTest ./saunafs.nix;
-
scaphandre = handleTest ./scaphandre.nix { };
+
scaphandre = runTest ./scaphandre.nix;
schleuder = runTest ./schleuder.nix;
scion-freestanding-deployment = handleTest ./scion/freestanding-deployment { };
scrutiny = runTest ./scrutiny.nix;
+13 -17
nixos/tests/scaphandre.nix
···
-
import ./make-test-python.nix {
+
{
name = "scaphandre";
-
nodes = {
-
scaphandre =
-
{ pkgs, ... }:
-
{
-
boot.kernelModules = [ "intel_rapl_common" ];
+
nodes.scaphandre =
+
{ pkgs, ... }:
+
{
+
boot.kernelModules = [ "intel_rapl_common" ];
-
environment.systemPackages = [ pkgs.scaphandre ];
-
};
-
};
+
environment.systemPackages = [ pkgs.scaphandre ];
+
};
-
testScript =
-
{ nodes, ... }:
-
''
-
scaphandre.start()
-
scaphandre.wait_until_succeeds(
-
"scaphandre stdout -t 4",
-
)
-
'';
+
testScript = ''
+
scaphandre.start()
+
scaphandre.wait_until_succeeds(
+
"scaphandre stdout -t 4",
+
)
+
'';
}