set BASH_COMPLETION_COMPAT_DIR to BASH_COMPLETION_DIR, to avoid sourcing actual /etc/completion.d directory before tests
This commit is contained in:
parent
84c20852a3
commit
3d584c94cb
@ -591,6 +591,7 @@ proc _save_env {{file ""}} {
|
||||
# Source bash_completion package
|
||||
proc source_bash_completion {} {
|
||||
assert_bash_exec {BASH_COMPLETION_DIR=$(cd $TESTDIR/..; pwd)/contrib}
|
||||
assert_bash_exec {BASH_COMPLETION_COMPAT_DIR=$BASH_COMPLETION_DIR}
|
||||
assert_bash_exec {BASH_COMPLETION=$(cd $TESTDIR/..; pwd)/bash_completion}
|
||||
assert_bash_exec {source $BASH_COMPLETION}
|
||||
}; # source_bash_completion()
|
||||
|
Loading…
x
Reference in New Issue
Block a user