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 11:28:34 +0100
commitc1acc390b590456268f58dea6697e6869f1cd16f (patch)
tree99ccd7a5d24809510bd80d9b032f4d82a2a54fa9
parent640f0ca5a17a144448a48de2a80e1f7a655eb9b2 (diff)
downloadbuildstream-tpollard/bzrfix.tar.gz
testing/_utils/site.py: Fix missing BZR assignmenttpollard/bzrfix
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 = {}