Charmhelper sync for 20.02
Change-Id: I8ef597f1441eee9fec32afd723c85a87a28e5327
This commit is contained in:
parent
c109dffc30
commit
7c1eb87d14
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue