sapling/tests/require-core-hg.sh
Jun Wu b9d8fe4c72 test-check: backport test-check-commit from core hg
Summary:
Hopefully this would rule out things like double blank lines and
inconsistent commit title.

Test Plan: `arc unit`

Reviewers: #sourcecontrol, simonfar

Reviewed By: simonfar

Subscribers: mjpieters

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

Signature: t1:4036978:1476807264:414cd17672f59675be104c0026a8e50efac8b15d
2016-10-18 17:07:43 +01:00

9 lines
154 B
Bash
Executable File

#!/bin/bash
for path in "$@"; do
[[ -e $RUNTESTDIR/../$path ]] || {
echo 'skipped: missing core hg file: '"$path"
exit 80
}
done