summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2019-06-07 11:28:34 +0100
committerTom Pollard <tom.pollard@codethink.co.uk>2019-06-07 15:06:50 +0000
commitea4615a49d79210961a9d95fdacfde20d6139ea0 (patch)
treece20d39bade8ab92bec070ea317a254e72ee50eb
parent16338464b15f8836cd6e84b9e7bc11047494cc66 (diff)
downloadbuildstream-ea4615a49d79210961a9d95fdacfde20d6139ea0.tar.gz
testing/_utils/site.py: Fix missing BZR assignment
Ensure that BZR is assigned to None in exception handling when not available on the host. Needed for tests/testutils/repo/bzr.py import.
-rw-r--r--src/buildstream/testing/_utils/site.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildstream/testing/_utils/site.py b/src/buildstream/testing/_utils/site.py
index 9e66b804e..64e0603ab 100644
--- a/src/buildstream/testing/_utils/site.py
+++ b/src/buildstream/testing/_utils/site.py
@@ -39,6 +39,7 @@ try:
"BZR_EMAIL": "Testy McTesterson <testy.mctesterson@example.com>"
}
except ProgramNotFoundError:
+ BZR = None
HAVE_BZR = False
BZR_ENV = {}