Skip to content

Commit

Permalink
tests: Fix installTests
Browse files Browse the repository at this point in the history
(cherry picked from commit 2b5365b)
  • Loading branch information
roberth committed Feb 19, 2025
1 parent b175e5b commit fd06258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source common.sh
#nix-hash --help | grepQuiet base32

# Can we ask for the version number?
nix-env --version | grep "$version"
nix-env --version | grep -F "${_NIX_TEST_CLIENT_VERSION:-$version}"

nix_env=$(type -P nix-env)
(PATH=""; ! $nix_env --help 2>&1 ) | grepQuiet -F "The 'man' command was not found, but it is needed for 'nix-env' and some other 'nix-*' commands' help text. Perhaps you could install the 'man' command?"
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ mkMesonDerivation (

}
// lib.optionalAttrs (test-daemon != null) {
# TODO rename to _NIX_TEST_DAEMON_PACKAGE
NIX_DAEMON_PACKAGE = test-daemon;
_NIX_TEST_CLIENT_VERSION = nix-cli.version;
}
)

0 comments on commit fd06258

Please sign in to comment.