Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempts to add a disko test. #4

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

johnjameswhitman
Copy link
Owner

No description provided.

@@ -38,6 +42,8 @@

checks.${system} = {
hello = pkgs.testers.runNixOSTest ./tests/hello.nix;
# silver = disko.lib.testLib.makeDiskoTest (import ./tests/silver.nix);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually works with nix flake check --impure.

flake.nix Outdated
makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix");
eval-config = import (pkgs.path + "/nixos/lib/eval-config.nix");
lib = pkgs.lib;
diskoLib = import disko.lib { inherit lib makeTest eval-config; };
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails with:

error: cannot coerce a set to a string: { config = «thunk»; create = «thunk»; createScript = «thunk»; createScriptNoDeps = «thunk»; deepMergeMap = «thunk»; defineHookVariables = «thunk»; deviceList = «thunk»; deviceNumbering = «thunk»; deviceType = «thunk»; disko = «thunk»; «34 attributes elided» }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant