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...
Fixed in r22747.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2305