[winswitch] Xpra 3 Test Failures

Antoine Martin antoine at nagafix.co.uk
Thu Jan 30 04:44:10 GMT 2020


On 29/01/2020 05:27, Lemings, Brad [US] (MS) via shifter-users wrote:
> Hello,
> 
> I'm trying to rebuild the SRPM downloaded from https://xpra.org/dists/RedHat/7.7/SRPMS/xpra-3.0.5-0.r24939xpra1.el7_7.src.rpm.
> 
> I get the following test failures.
(..)
> 2259 ======================================================================
> 2260 ERROR: test_tcp_socket (__main__.ServerSocketsTest)
> 2261 ----------------------------------------------------------------------
> 2262 Traceback (most recent call last):
> 2263   File "/rpmbuild.xpra3-rhel7.7/BUILD/xpra-3.0.5-python2/unittests/unit/server/server_sockets_test.py", line 71, in test_tcp_socket
> 2264     self._test_connect(["--bind-tcp=0.0.0.0:%i" % port], "allow", [], b"hello", "ws://127.0.0.1:%i/" % port, EXIT_OK)
> 2265   File " /rpmbuild.xpra3-rhel7.7/BUILD/xpra-3.0.5-python2/unittests/unit/server/server_sockets_test.py", line 47, in _test_connect
> 2266     raise Exception("version client failed to connect, returned %s" % estr(r))
> 2267 Exception: version client failed to connect, returned 1 : CONNECTION_LOST
> 2268 
> 2269 ======================================================================
> 2270 FAIL: test_ssl (__main__.ServerSocketsTest)
> 2271 ----------------------------------------------------------------------
> 2272 Traceback (most recent call last):
> 2273   File "/rpmbuild.xpra3-rhel7.7/BUILD/xpra-3.0.5-python2/unittests/unit/server/server_sockets_test.py", line 143, in test_ssl
> 2274     test_connect("wss://127.0.0.1:%i/" % tcp_port, EXIT_OK, noverify)
> 2275   File "/rpmbuild.xpra3-rhel7.7/BUILD/xpra-3.0.5-python2/unittests/unit/server/server_sockets_test.py", line 136, in test_connect
> 2276     assert r==exit_code, "expected info client to return %s but got %s" % (exit_code, client.poll())
> 2277 AssertionError: expected info client to return 0 but got None
(..)
> 
> Any clues what might be causing this?
Yes, I have seen those errors before and couldn't figure out how to
reproduce them reliably, so the RPMs were built by adding "--define
run_tests 0" to skip running the tests during rpmbuild.
You can still run the unit tests by hand and verify that they pass.
More details here:
http://xpra.org/trac/ticket/2432
You can run the tests with both Python 2 and 3, with just:
./unit/run2
./unit/run3
(on CentOS 7, only Python 2 is available)

Cheers,
Antoine


> 
> Thanks,
> Eric.
> 
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> https://lists.devloop.org.uk/mailman/listinfo/shifter-users
> 




More information about the shifter-users mailing list