Skip to content

Commit

Permalink
Also ensure does not load global RC files when running test-suite
Browse files Browse the repository at this point in the history
While bash only has a single option for disabling bashrc loading, ZSH
comes with two options: one for $HOME/.zshrc and one for the global
zshrc (typically located in /etc). Pass both options to avoid surprises.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
  • Loading branch information
ogayot committed Aug 2, 2024
1 parent 5c014ab commit ecd846c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def bash_repl(command="bash"):


def zsh_repl(command="zsh"):
sh = _repl_sh(command, ["--no-rcs", "-V"], non_printable_insert="%(!..)")
sh = _repl_sh(command, ["--no-rcs", "--no-globalrcs", "-V"], non_printable_insert="%(!..)")
# Require two tabs to print all options (some tests rely on this).
sh.run_command("setopt BASH_AUTO_LIST")
return sh
Expand Down

0 comments on commit ecd846c

Please sign in to comment.