commit: b61bee7bf4658940147cba1d7ed0dfbeb1a49696
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 30 02:57:32 2014 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sun Nov 30 02:57:36 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=b61bee7b
external.py: Adds archive overlay test checking
A test has been added to ensure we only test the archive overlay
types that the user has installed on their system.
---
layman/tests/external.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/layman/tests/external.py b/layman/tests/external.py
index 1aceca6..64f48d2 100755
--- a/layman/tests/external.py
+++ b/layman/tests/external.py
@@ -194,7 +194,16 @@ class ArchiveAddRemoveSync(unittest.TestCase):
def test(self):
- for archive in ('squashfs', 'tar'):
+ archives = []
+ try:
+ from layman.overlays.modules.tar.tar import TarOverlay
+ archives.append('tar')
+ from layman.overlays.modules.squashfs.squashfs import
SquashfsOverlay
+ archives.append('squashfs')
+ except ImportError:
+ pass
+
+ for archive in archives:
xml_text, repo_name, temp_archive_path = getattr(self,
"_create_%(archive)s_overlay" %
{'archive': archive})()