Skip tests on non-debian systems.
This commit is contained in:
parent
49e6237ef3
commit
8669257e13
1 changed files with 6 additions and 0 deletions
|
@ -156,5 +156,11 @@ janitor (0.1-1jan+some1) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
|
||||||
class BuildArchitectureTests(TestCase):
|
class BuildArchitectureTests(TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
super(BuildArchitectureTests, self).setUp()
|
||||||
|
if not os.path.exists('/usr/bin/dpkg-architecture'):
|
||||||
|
self.skipTest('not a debian system')
|
||||||
|
|
||||||
def test_is_str(self):
|
def test_is_str(self):
|
||||||
self.assertIsInstance(get_build_architecture(), str)
|
self.assertIsInstance(get_build_architecture(), str)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue