Charmhelper sync for 20.02

Change-Id: I8ef597f1441eee9fec32afd723c85a87a28e5327
This commit is contained in:
Liam Young 2020-02-04 16:38:08 +00:00
parent c109dffc30
commit 7c1eb87d14
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ def get_platform():
# Stock Python does not detect Ubuntu and instead returns debian.
# Or at least it does in some build environments like Travis CI
return "ubuntu"
elif "elementary" in current_platform:
# ElementaryOS fails to run tests locally without this.
return "ubuntu"
else:
raise RuntimeError("This module is not supported on {}."
.format(current_platform))