Xpra: Ticket #2305: rpmbuild unit tests fail if xpra is not installed globally

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...



Sat, 18 May 2019 13:02:08 GMT - Antoine Martin: status changed; resolution set

Fixed in r22747.


Sat, 23 Jan 2021 05:47:44 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2305