Still debugging Travis CI issue

This commit is contained in:
Miroslav Stampar
2020-05-27 18:30:13 +02:00
parent c97a814d26
commit 5c650e15a9
4 changed files with 11 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ import time
from extra.beep.beep import beep
from lib.core.agent import agent
from lib.core.common import Backend
from lib.core.common import dataToStdout
from lib.core.common import extractRegexResult
from lib.core.common import extractTextTagContent
from lib.core.common import filterNone
@@ -1594,7 +1595,10 @@ def checkConnection(suppressOutput=False):
def checkInternet():
content = Request.getPage(url=CHECK_INTERNET_ADDRESS, checking=True)[0]
return CHECK_INTERNET_VALUE in (content or "")
result = CHECK_INTERNET_VALUE in (content or "")
if not result and conf.nonInteractive:
dataToStdout(repr(content))
return result
def setVerbosity(): # Cross-referenced function
raise NotImplementedError