diff options
author | Mario Rodas <rodasmario2@gmail.com> | 2024-06-08 04:20:00 +0000 |
---|---|---|
committer | Mario Rodas <rodasmario2@gmail.com> | 2024-06-08 04:20:00 +0000 |
commit | a05de58ebd581c47f4f985efab7236574aa0f842 (patch) | |
tree | c0ee47516d4db6dc3667bacbfeb346ef76bd0305 /COPYING | |
parent | 4f94531209510c7d580e525a017ea01f18894ded (diff) |
tests: fix daemon version in isDaemonNewer function
Since ad8a4b380e, the version printer returns "nix (Lix, like Nix) 2.x",
hence the `daemonVersion` was being set to the string "like".
Using `compareVersions` with a letter compares them lexicographically:
builtins.compareVersions "like" "2.12pre20230103" // => -1
builtins.compareVersions "like" "2.16.0" // => -1
This caused that `isDaemonNewer` always returned 1, falsy in Bash terms.
Therefore, the test suite skipped those tests where they use it.
Fixes https://git.lix.systems/lix-project/lix/issues/324
Change-Id: If6682515bf0bf8b8add641af9a4e98b50a9acb51
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions