mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/tests/fish: fix test broken by coreutils 9.10
coreutils 9.10 man pages are generated by help2man 1.50 which embeds tty hyperlink escape codes (\X'tty: link ...'). These break fish's create_manpage_completions.py parser, so coreutils.fish is no longer generated. Switch to coreutils-full (the minimal coreutils has no man pages at all) and check for chmod.fish which still parses successfully.
This commit is contained in:
parent
c5f167527b
commit
b411346133
1 changed files with 4 additions and 2 deletions
|
|
@ -7,7 +7,9 @@
|
|||
{
|
||||
programs.fish.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
coreutils
|
||||
# coreutils-full (not coreutils) so that man pages are available
|
||||
# for completion generation
|
||||
coreutils-full
|
||||
procps # kill collides with coreutils' to test https://github.com/NixOS/nixpkgs/issues/56432
|
||||
];
|
||||
|
||||
|
|
@ -19,7 +21,7 @@
|
|||
#python
|
||||
''
|
||||
start_all()
|
||||
machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish")
|
||||
machine.wait_for_file("/etc/fish/generated_completions/chmod.fish")
|
||||
machine.wait_for_file("/etc/fish/generated_completions/kill.fish")
|
||||
machine.succeed(
|
||||
"fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/vendor_completions.d /etc/fish/generated_completions /root/.cache/fish/generated_completions$'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue