diff options
author | regnat <rg@regnat.ovh> | 2021-10-14 15:42:54 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-10-14 16:00:45 +0200 |
commit | 3a2fc9ce1dd3b176bdef257be75439bde33c210a (patch) | |
tree | 19bc2b857ca7937544916f77e11e3fc88b70b007 /tests | |
parent | 4c0cde95ad8dc95f876e5cf32790e73e08f49b28 (diff) |
Fix the `isDaemonNewer` check
- Don’t hardcode the “newer” version
- Remove an ill-placed `return`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index 7daab2460..08f5e0a77 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -126,7 +126,7 @@ isDaemonNewer () { [[ -n "${NIX_DAEMON_PACKAGE:-}" ]] || return 0 local requiredVersion="$1" local daemonVersion=$($NIX_DAEMON_PACKAGE/bin/nix-daemon --version | cut -d' ' -f3) - return [[ $(nix eval --expr "builtins.compareVersions ''$daemonVersion'' ''2.4''") -ge 0 ]] + [[ $(nix eval --expr "builtins.compareVersions ''$daemonVersion'' ''$requiredVersion''") -ge 0 ]] } requireDaemonNewerThan () { |