Skip to content

Commit

Permalink
better debugging of some weird failures on the buildbot with fedora 23
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12141 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 13, 2016
1 parent 988f12d commit 54f73bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/unit/server/auth_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_allow(self):
assert a.authenticate("", x)


def _test_file_auth(self, module, genauthdata):
def _test_file_auth(self, name, module, genauthdata):
#no file, no go:
a = self._init_auth(module)
assert a.requires_challenge()
Expand All @@ -111,7 +111,7 @@ def _test_file_auth(self, module, genauthdata):
assert not a.get_challenge()
assert not a.get_challenge()
for muck in (0, 1):
f = tempfile.NamedTemporaryFile()
f = tempfile.NamedTemporaryFile(prefix=name)
filename = f.name
with f:
a = self._init_auth(module, {"password_file" : filename})
Expand All @@ -138,13 +138,13 @@ def test_file(self):
def genfiledata(a):
password = uuid.uuid4().hex
return password, password
self._test_file_auth(file_auth, genfiledata)
self._test_file_auth("file", file_auth, genfiledata)

def test_multifile(self):
def genfiledata(a):
password = uuid.uuid4().hex
return password, "%s|%s|||" % (a.username, password)
self._test_file_auth(multifile_auth, genfiledata)
self._test_file_auth("multifile", multifile_auth, genfiledata)


def main():
Expand Down

0 comments on commit 54f73bb

Please sign in to comment.