nix: Move eval.nix tests into /hive
This commit is contained in:
parent
d5c6f7cb0c
commit
bd4493da73
5 changed files with 4 additions and 4 deletions
|
@ -23,6 +23,9 @@ use super::NixCommand;
|
|||
use crate::util::CommandExecution;
|
||||
use crate::job::JobHandle;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
const HIVE_EVAL: &[u8] = include_bytes!("eval.nix");
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
@ -154,7 +154,7 @@ fn test_parse_simple() {
|
|||
|
||||
#[test]
|
||||
fn test_parse_flake() {
|
||||
let flake_dir = PathBuf::from("./src/nix/tests/simple-flake");
|
||||
let flake_dir = PathBuf::from("./src/nix/hive/tests/simple-flake");
|
||||
let flake = block_on(Flake::from_dir(flake_dir)).unwrap();
|
||||
|
||||
let hive_path = HivePath::Flake(flake);
|
|
@ -44,9 +44,6 @@ pub use flake::Flake;
|
|||
pub mod node_filter;
|
||||
pub use node_filter::NodeFilter;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
pub const SYSTEM_PROFILE: &str = "/nix/var/nix/profiles/system";
|
||||
|
||||
pub type NixResult<T> = Result<T, NixError>;
|
||||
|
|
Loading…
Reference in a new issue