set BASH_COMPLETION_COMPAT_DIR to BASH_COMPLETION_DIR, to avoid sourcing actual /etc/completion.d directory before tests

This commit is contained in:
Guillaume Rousse 2009-12-29 23:07:06 +01:00
parent 84c20852a3
commit 3d584c94cb

View File

@ -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()