tests: disable slow tests unless ENABLE_SLOW_TESTS=1 is set

This commit is contained in:
Marek Marczykowski-Górecki 2017-07-20 14:14:47 +02:00
parent ea47701fe6
commit 8d884a52e6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 3 additions and 7 deletions

View File

@ -14,7 +14,7 @@ script:
- test -z "$TESTS_ONLY" || { cd build/lib; ROOTDIR=../.. ../../run-tests; }
- test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
env:
- TESTS_ONLY=1
- TESTS_ONLY=1 ENABLE_SLOW_TESTS=1
after_success:
- codecov

View File

@ -786,17 +786,13 @@ class MockFirewall(qubesadmin.firewall.Firewall):
self.vm.app = AppProxy(self.vm.app, import_data_queue)
@unittest.skipUnless(os.environ.get('ENABLE_SLOW_TESTS', False),
'Set ENABLE_SLOW_TESTS=1 environment variable')
class TC_10_BackupCompatibility(qubesadmin.tests.backup.BackupTestCase):
storage_pool = None
def tearDown(self):
try:
for vm in self.app.domains:
if vm.name.startswith('test-'):
del self.app.domains[vm.name]
except:
pass
super(TC_10_BackupCompatibility, self).tearDown()
def create_whitelisted_appmenus(self, filename):