summaryrefslogtreecommitdiff
path: root/tests/bzr-single-commit.setup
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bzr-single-commit.setup')
-rwxr-xr-xtests/bzr-single-commit.setup5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/bzr-single-commit.setup b/tests/bzr-single-commit.setup
index dcd70cf..0c28df2 100755
--- a/tests/bzr-single-commit.setup
+++ b/tests/bzr-single-commit.setup
@@ -20,6 +20,11 @@
set -e
+# If bzr is not available and brz is, use brz instead
+if ! command -v bzr >/dev/null && command -v brz >/dev/null; then
+ bzr() { brz "$@"; }
+fi
+
# create the repository
repo="$DATADIR/bzr-test-repo"
mkdir "$repo"