xpra icon
Bug tracker and wiki

Opened 5 weeks ago

Closed 5 weeks ago

#2305 closed defect (fixed)

rpmbuild unit tests fail if xpra is not installed globally

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

Description

When running from rpmbuild, the unit tests should be using the XPRA_COMMAND we define.

This is reproducible:

sudo rm /usr/bin/xpra
$ XPRA_COMMAND=/path/to/scripts/xpra PYTHONPATH=. ./unit/server/mixins/start_option_test.py 

The errors look like this:

['python2', 'xpra', '--socket-dirs=/tmp', '--systemd-run=no', '--pulseaudio=no', '--start=xterm', 'start', ':602', '--no-daemon', '--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:48753'] failed:
returncode=2
contents of stdout file '/tmp/xpra-stdout-2I4ZNt':
contents of stderr file '/tmp/xpra-stderr-Luxn4S':
 python2: can't open file 'xpra': [Errno 2] No such file or directory
test error for 'start' 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)])
E

What's happening here is that we're not honouring XPRA_COMMAND and using xpra instead...

Change History (1)

comment:1 Changed 5 weeks ago by Antoine Martin

Resolution: fixed
Status: newclosed

Fixed in r22747.

Note: See TracTickets for help on using tickets.