spark: fix tests eval under allowAliases = false

Without the change `tests` eval fails as:

    $ nix build --no-link -f. spark.tests --arg config '{ allowAliases = false; }'
    error: attribute 'nixosTest' missing
           12|   };
           13|   testSparkCluster = { sparkPackage, ... }: pkgs.nixosTest ({
             |                                             ^
           14|     name = "spark";
       Did you mean nixosTests?

`nixosTest` is an alias defined as:

    pkgs/top-level/aliases.nix:  nixosTest = testers.nixosTest; # Added 2022-05-05
This commit is contained in:
Sergei Trofimovich 2023-12-31 22:47:55 +00:00
parent e5f6890469
commit 3d40057509

View File

@ -10,7 +10,7 @@ let
sparkCluster = testSparkCluster args;
passthru.override = args': testsForPackage (args // args');
};
testSparkCluster = { sparkPackage, ... }: pkgs.nixosTest ({
testSparkCluster = { sparkPackage, ... }: pkgs.testers.nixosTest ({
name = "spark";
nodes = {