diff --git a/hdl_checker/tests/test_misc.py b/hdl_checker/tests/test_misc.py index 42ebc81..db95349 100644 --- a/hdl_checker/tests/test_misc.py +++ b/hdl_checker/tests/test_misc.py @@ -30,6 +30,8 @@ import unittest2 # type: ignore from mock import MagicMock, Mock, patch +from hdl_checker.tests import linuxOnly + from hdl_checker.builder_utils import BuilderName, getBuilderByName from hdl_checker.builders.fallback import Fallback from hdl_checker.builders.ghdl import GHDL @@ -133,6 +135,7 @@ def test_RejectsInvalidFormats(self, popen): def test_HandlesNoConnection(self, *_): self.assertIsNone(_getLatestReleaseVersion()) + @linuxOnly def test_UnmockedCallWorks(self): self.assertIsNotNone(_getLatestReleaseVersion()) diff --git a/hdl_checker/utils.py b/hdl_checker/utils.py index d692141..69f9b16 100644 --- a/hdl_checker/utils.py +++ b/hdl_checker/utils.py @@ -421,7 +421,7 @@ def _getLatestReleaseVersion(): timer.cancel() if not stdout or stderr: - _logger.info("Couldn't fetch latest tag from %s", REPO_URL) + _logger.info("Couldn't fetch latest tag from %s: %s", REPO_URL, stderr.decode()) return None tags = [x.decode() for x in stdout.splitlines()]