From f21d0e6bd8bbaf00080245caf7cb733512fa2438 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Wed, 19 Feb 2020 17:05:34 +0200 Subject: [PATCH] Run TestProcessConfig and TestLogger only on Travis CI xenial: state.appdata confused ignoring BITMESSAGE_HOME env --- src/tests/test_config.py | 1 + src/tests/test_logger.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/tests/test_config.py b/src/tests/test_config.py index 35ddd3fa..269b2e0b 100644 --- a/src/tests/test_config.py +++ b/src/tests/test_config.py @@ -39,6 +39,7 @@ class TestConfig(unittest.TestCase): BMConfigParser().safeGetInt('nonexistent', 'nonexistent', 42), 42) +@unittest.skipUnless(os.getenv('TRAVIS_DIST') == 'xenial', 'appdata confusion') class TestProcessConfig(TestProcessProto): """A test case for keys.dat""" diff --git a/src/tests/test_logger.py b/src/tests/test_logger.py index 57448911..19b70097 100644 --- a/src/tests/test_logger.py +++ b/src/tests/test_logger.py @@ -8,6 +8,7 @@ import tempfile import unittest +@unittest.skipUnless(os.getenv('TRAVIS_DIST') == 'xenial', 'appdata confusion') class TestLogger(unittest.TestCase): """A test case for bmconfigparser""" -- 2.45.1