Skip to content

Commit 2b5365b

Browse files
committed
tests: Fix installTests
1 parent 3556f6b commit 2b5365b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/functional/misc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source common.sh
1111
#nix-hash --help | grepQuiet base32
1212

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

1616
nix_env=$(type -P nix-env)
1717
(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?"

tests/functional/package.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ mkMesonDerivation (
9999

100100
}
101101
// lib.optionalAttrs (test-daemon != null) {
102+
# TODO rename to _NIX_TEST_DAEMON_PACKAGE
102103
NIX_DAEMON_PACKAGE = test-daemon;
104+
_NIX_TEST_CLIENT_VERSION = nix-cli.version;
103105
}
104106
)

0 commit comments

Comments
 (0)