Fix tests

This commit is contained in:
André Apitzsch 2018-01-17 22:36:14 +01:00
parent 513bffd483
commit 06b8eb58e5
2 changed files with 6 additions and 3 deletions

View File

@ -46,7 +46,7 @@ from nbxmpp import (NS_XHTML_IM, NS_ESESSION, NS_CHATSTATES,
FEATURE_BLACKLIST = [NS_CHATSTATES, NS_XHTML_IM, NS_ESESSION, FEATURE_BLACKLIST = [NS_CHATSTATES, NS_XHTML_IM, NS_ESESSION,
NS_JINGLE_ICE_UDP, NS_JINGLE_RTP_AUDIO, NS_JINGLE_RTP_VIDEO, NS_JINGLE_ICE_UDP, NS_JINGLE_RTP_AUDIO, NS_JINGLE_RTP_VIDEO,
NS_JINGLE_FILE_TRANSFER_5] NS_JINGLE_FILE_TRANSFER_5]
from gajim.common import app
# Query entry status codes # Query entry status codes
NEW = 0 NEW = 0
QUERIED = 1 QUERIED = 1
@ -457,6 +457,7 @@ class MucCapsCache:
identities, features, data = [], [], [] identities, features, data = [], [], []
query_childs = stanza.getQueryChildren() query_childs = stanza.getQueryChildren()
if not query_childs: if not query_childs:
from gajim.common import app
app.log('gajim.muc').warning('%s returned empty disco info', jid) app.log('gajim.muc').warning('%s returned empty disco info', jid)
return return

View File

@ -14,6 +14,8 @@ from setuptools.command.build_py import build_py as _build
from distutils import log from distutils import log
from distutils.util import convert_path, newer from distutils.util import convert_path, newer
import subprocess
import gajim import gajim
pos = [x for x in os.listdir('po') if x[-3:] == ".po"] pos = [x for x in os.listdir('po') if x[-3:] == ".po"]
@ -179,14 +181,14 @@ class test(Command):
pass pass
def run(self): def run(self):
os.system("./test/runtests.py") exit(subprocess.call("./test/runtests.py"))
class test_nogui(test): class test_nogui(test):
description = "Run tests without GUI" description = "Run tests without GUI"
def run(self): def run(self):
os.system("./test/runtests.py -n") exit(subprocess.call(["./test/runtests.py", "-n"]))
class update_po(Command): class update_po(Command):