Move the test module into a separate dir.

This commit is contained in:
r-vdp 2023-03-24 16:35:02 +01:00
parent 0cc421ead0
commit 015935f46e
No known key found for this signature in database
6 changed files with 150 additions and 148 deletions

View file

@ -95,6 +95,8 @@ fn find_flake_attr(flake_uri: &str) -> Result<Cow<'_, str>> {
anyhow::bail!("No suitable flake attribute found, giving up.");
}
// TODO handle errors better.
// E.g. when we refer to an unexisting module in the systemConfig definition.
fn try_flake_attr(flake_uri: &str) -> Result<bool> {
log::info!("Trying flake URI: {flake_uri}...");
let status = try_nix_eval(flake_uri)?;