sapling/tests/require-ext.sh
Mark Thomas 742cd624f7 hgsql: integrate with hg-crew
Summary:
Move hgsql into the hgext directory, and the tests to tests/test-hgsql-*.

Update the tests to refer to the new places for things.

Test Plan: Run the hgsql tests and make sure they pass.

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6660499

Tasks: T24908724
2018-01-04 07:22:19 -08:00

16 lines
293 B
Bash
Executable File

#!/bin/bash
hasext() {
for modname in "$1" "hgext.$1" "hgext3rd.$1"; do
${PYTHON:-python} -c "import $1" 2> /dev/null && return 0
done
false
}
for extname in "$@"; do
hasext $extname || {
echo 'skipped: missing feature: '"$extname"
exit 80
}
done