generate-test-vars: Fix wrong Flake function invocations
This commit is contained in:
@@ -64,17 +64,11 @@ class TestMachine(Machine):
|
|||||||
return self.test_dir
|
return self.test_dir
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def nix(
|
def nix(self, attr: str) -> Any:
|
||||||
self,
|
|
||||||
attr: str,
|
|
||||||
nix_options: list[str] | None = None,
|
|
||||||
) -> Any:
|
|
||||||
"""
|
"""
|
||||||
Build the machine and return the path to the result
|
Build the machine and return the path to the result
|
||||||
accepts a secret store and a facts store # TODO
|
accepts a secret store and a facts store # TODO
|
||||||
"""
|
"""
|
||||||
if nix_options is None:
|
|
||||||
nix_options = []
|
|
||||||
|
|
||||||
config = nix_config()
|
config = nix_config()
|
||||||
system = config["system"]
|
system = config["system"]
|
||||||
@@ -83,8 +77,7 @@ class TestMachine(Machine):
|
|||||||
test_system = system.rstrip("darwin") + "linux"
|
test_system = system.rstrip("darwin") + "linux"
|
||||||
|
|
||||||
return self.flake.select(
|
return self.flake.select(
|
||||||
f'checks."{test_system}".{self.check_attr}.machinesCross.{system}.{self.name}.{attr}',
|
f'checks."{test_system}".{self.check_attr}.machinesCross.{system}.{self.name}.{attr}'
|
||||||
nix_options=nix_options,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user