Skip to content

Commit

Permalink
Fix nix Package Detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuio authored Mar 10, 2023
1 parent 7d88825 commit 5b4f512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shavee-core/src/filehash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ mod tests {
fn remote_file_hash() {

// Check for Nix package builder before running the unit test [issue #27]
if std::env::var("postInstall").is_ok() {
if std::env::var("installPhase").is_ok() {
eprintln!("Nix package environment detected. Unit test is skipped.");
return;
}
Expand Down Expand Up @@ -462,7 +462,7 @@ mod tests {
fn get_filehash_unit_test() {

// Check for Nix package builder before running the unit test [issue #27]
if std::env::var("postInstall").is_ok() {
if std::env::var("installPhase").is_ok() {
eprintln!("Nix package environment detected. Unit test is skipped.");
return;
}
Expand Down

0 comments on commit 5b4f512

Please sign in to comment.