xpra icon
Bug tracker and wiki

Opened 3 months ago

Closed 5 weeks ago

#2306 closed defect (worksforme)

start-desktop test failure

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: critical Milestone: 3.0
Component: tests Version: 2.5.x
Keywords: Cc:

Description

As part of rpmbuild:

running unit.server.mixins.startdesktop_option_test

2019-05-20 22:54:42,864 test error for 'start-desktop' subcommand with options=OrderedDict([('windows', True), ('notifications', True), ('webcam', True), ('clipboard', True), ('speaker', True), ('microphone', True), ('av-sync', True), ('printing', True), ('file-transfer', True), ('readonly', True), ('remote-logging', True), ('mmap', True), ('dbus-proxy', True)])
Fxpra initialization error:
 cannot find live server for display :202

======================================================================
FAIL: test_start_all (__main__.StartDesktopOptionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/antoine/rpmbuild/BUILD/xpra-3.0-python2/unittests/unit/server/mixins/startdesktop_option_test.py", line 16, in test_start_all
    self._test_all("start-desktop")
  File "/home/antoine/rpmbuild/BUILD/xpra-3.0-python2/unittests/unit/server/mixins/server_mixins_option_test_util.py", line 188, in _test_all
    self._test(subcommand, options=options)
  File "/home/antoine/rpmbuild/BUILD/xpra-3.0-python2/unittests/unit/server/mixins/server_mixins_option_test_util.py", line 139, in _test
    assert r is None, "rfb client terminated early and returned %i for server with args=%s" % (r, args)
AssertionError: rfb client terminated early and returned 1 for server with args=['--windows=True', '--notifications=True', '--webcam=True', '--clipboard=True', '--speaker=True', '--microphone=True', '--av-sync=True', '--printing=True', '--file-transfer=True', '--readonly=True', '--remote-logging=True', '--mmap=True', '--dbus-proxy=True', '--bind-tcp=0.0.0.0:44347']

Running it separately:

xpra initialization error:
 cannot find live server for display :202

======================================================================
FAIL: test_start_all (__main__.StartDesktopOptionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./unit/server/mixins/startdesktop_option_test.py", line 16, in test_start_all
    self._test_all("start-desktop")
  File "/home/antoine/projects/Xpra/trunk/src/unittests/unit/server/mixins/server_mixins_option_test_util.py", line 188, in _test_all
    self._test(subcommand, options=options)
  File "/home/antoine/projects/Xpra/trunk/src/unittests/unit/server/mixins/server_mixins_option_test_util.py", line 139, in _test
    assert r is None, "rfb client terminated early and returned %i for server with args=%s" % (r, args)
AssertionError: rfb client terminated early and returned 1 for server with args=['--windows=True', '--notifications=True', '--webcam=True', '--clipboard=True', '--speaker=True', '--microphone=True', '--av-sync=True', '--printing=True', '--file-transfer=True', '--readonly=True', '--remote-logging=True', '--mmap=True', '--dbus-proxy=True', '--bind-tcp=0.0.0.0:35749']

Attachments (1)

xauth-test-fix.patch (3.6 KB) - added by Antoine Martin 3 months ago.
"fix" by removing xauthority

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 months ago by Antoine Martin

Status: newassigned

The problem comes from XAUTHORITY.

Changed 3 months ago by Antoine Martin

Attachment: xauth-test-fix.patch added

"fix" by removing xauthority

comment:2 Changed 3 months ago by Antoine Martin

Temporary fix merged in r22762.

I just don't understand why using a private XAUTHORITY started to fail recently.
Running the same commands from the command line succeeds.

comment:3 Changed 5 weeks ago by Antoine Martin

Resolution: worksforme
Status: assignedclosed

r23180 removed the private xauth code.

This is not properly "fixed", but it works..

Note: See TracTickets for help on using tickets.