Skip to content

Commit

Permalink
test: more thorough system location interference avoidance
Browse files Browse the repository at this point in the history
Closes #309
  • Loading branch information
scop committed Apr 28, 2019
1 parent 27daf01 commit 7700896
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/config/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ export PATH=$PATH:/usr/games:/usr/local/games
# For clean test state, avoid sourcing user's ~/.bash_completion
export BASH_COMPLETION_USER_FILE=/dev/null

# ...and avoid stuff in BASH_COMPLETION_USER_DIR overriding in-tree
# completions. The user dir is first in the lookup path, so this should also
# give precedence to the in-tree "completions" dir over other ones, e.g.
# the one possibly in /usr/share/bash-completion.
# ...and avoid stuff in BASH_COMPLETION_USER_DIR and system install locations
# overriding in-tree completions. Setting the user dir would otherwise suffice,
# but simple xspec completions are only installed if a separate one is not
# found in any completion dirs. Therefore we also point the "system" dirs to
# locations that should not yield valid completions and helpers paths either.
export BASH_COMPLETION_USER_DIR=$(cd "$SRCDIR/.."; pwd)
export XDG_DATA_DIRS=/var/empty

# Make sure default settings are in effect
unset -v \
Expand Down

0 comments on commit 7700896

Please sign in to comment.