tests: disable slow tests unless ENABLE_SLOW_TESTS=1 is set
This commit is contained in:
parent
ea47701fe6
commit
8d884a52e6
@ -14,7 +14,7 @@ script:
|
|||||||
- test -z "$TESTS_ONLY" || { cd build/lib; ROOTDIR=../.. ../../run-tests; }
|
- test -z "$TESTS_ONLY" || { cd build/lib; ROOTDIR=../.. ../../run-tests; }
|
||||||
- test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
|
- test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
|
||||||
env:
|
env:
|
||||||
- TESTS_ONLY=1
|
- TESTS_ONLY=1 ENABLE_SLOW_TESTS=1
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- codecov
|
- codecov
|
||||||
|
@ -786,17 +786,13 @@ class MockFirewall(qubesadmin.firewall.Firewall):
|
|||||||
self.vm.app = AppProxy(self.vm.app, import_data_queue)
|
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):
|
class TC_10_BackupCompatibility(qubesadmin.tests.backup.BackupTestCase):
|
||||||
|
|
||||||
storage_pool = None
|
storage_pool = None
|
||||||
|
|
||||||
def tearDown(self):
|
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()
|
super(TC_10_BackupCompatibility, self).tearDown()
|
||||||
|
|
||||||
def create_whitelisted_appmenus(self, filename):
|
def create_whitelisted_appmenus(self, filename):
|
||||||
|
Loading…
Reference in New Issue
Block a user