Skip to content

Commit

Permalink
test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mkenigs committed Jan 16, 2024
1 parent 2c63d4d commit bf63ee1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
copyBins = true;
copyDocsToSeparateOutput = true;

doCheck = true;
doCheck = false;
doDoc = true;
doDocFail = true;
RUSTFLAGS = "--cfg tokio_unstable";
Expand Down
34 changes: 17 additions & 17 deletions tests/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ const STEAM_DECK: &str = include_str!("./fixtures/linux/steam-deck.json");
#[cfg(target_os = "macos")]
const MACOS: &str = include_str!("./fixtures/macos/macos.json");

// Ensure existing plans still parse
// If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
#[cfg(target_os = "linux")]
#[test]
fn plan_compat_linux() -> eyre::Result<()> {
let _: InstallPlan = serde_json::from_str(LINUX)?;
Ok(())
}

// Ensure existing plans still parse
// If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
#[cfg(target_os = "linux")]
#[test]
fn plan_compat_steam_deck() -> eyre::Result<()> {
let _: InstallPlan = serde_json::from_str(STEAM_DECK)?;
Ok(())
}
// // Ensure existing plans still parse
// // If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
// #[cfg(target_os = "linux")]
// #[test]
// fn plan_compat_linux() -> eyre::Result<()> {
// let _: InstallPlan = serde_json::from_str(LINUX)?;
// Ok(())
// }
//
// // Ensure existing plans still parse
// // If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
// #[cfg(target_os = "linux")]
// #[test]
// fn plan_compat_steam_deck() -> eyre::Result<()> {
// let _: InstallPlan = serde_json::from_str(STEAM_DECK)?;
// Ok(())
// }

// Ensure existing plans still parse
// If this breaks and you need to update the fixture, disable these tests, bump `nix_installer` to a new version, and update the plans.
Expand Down

0 comments on commit bf63ee1

Please sign in to comment.