tests: fix helpers-usechg.sh

Summary:
I noticed some tests were running slower without chg. Upon investigation,
`alias hg=...` seems stop working. Similar to D7563731, let's define
functions explicitly instead.

Reviewed By: singhsrb

Differential Revision: D7964291

fbshipit-source-id: 08a69c865ffef6be7e84dd66a7cece9284b94e60
This commit is contained in:
Jun Wu 2018-05-11 16:20:19 -07:00 committed by Facebook Github Bot
parent cef17b6c33
commit 5851c126a5

View File

@ -4,4 +4,7 @@ if [ -x "$RUNTESTDIR/../contrib/chg/chg" ] && [ -z "$CHGHG" ]; then
CHGHG="${HG:-hg}"
export CHGHG
alias hg="${CHG:-chg}"
hg() {
"$RUNTESTDIR/../contrib/chg/chg" "$@"
}
fi