mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Skip the diagnostics test on Ubuntu 16.04
This is a byproduct of recent bump to C++17 compliant compilers. Ubuntu 16.04 does not have C++17 compliant compiler, but it's still useful to for us to test 2.5.3 there as the branch does not actually use any of the C++17 features not available on gcc on Ubuntu.
This commit is contained in:
parent
57680f5bde
commit
ac309b4ff1
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
|
||||
import sys
|
||||
import os
|
||||
import platform
|
||||
import unittest
|
||||
# Ensure python finds the local simpletap module
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -43,6 +44,10 @@ class TestDiagnostics(TestCase):
|
|||
self.t.config("taskd.trust", "strict")
|
||||
self.t.config("taskd.credentials", "us/me/xxx")
|
||||
|
||||
@unittest.skipIf(
|
||||
getattr(platform, 'dist', None) == None or 'xenial' == platform.dist()[-1],
|
||||
'Skipping diagnostics test on Ubuntu 16.04, as it lacks full C++17 support'
|
||||
)
|
||||
def test_diagnostics(self):
|
||||
"""Task diag output, so we can monitor platforms"""
|
||||
self.t.activate_hooks()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue