This website requires JavaScript.
Explore
Help
Sign In
NetCube-Systems-Austria
/
kumquat-buildroot
Watch
1
Star
0
Fork
0
You've already forked kumquat-buildroot
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
483114fda6
kumquat-buildroot
/
support
/
testing
/
tests
/
package
/
sample_python_crossbar.py
6 lines
95 B
Python
Raw
Normal View
History
Unescape
Escape
support/testing: make crossbar to use umsgpack Since version 19.3.3, python-autobahn assumes that when CPython is used msgpack will be used as well [1]. But it still allows the user to override this behavior by setting an environment variable [2] to use umsgpack. Make the test to explicitly use umsgpack since it is part of the minimal config (python-crossbar selects python-u-msgpack). Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/269139430 [1] https://github.com/crossbario/autobahn-python/commit/ea019b80427c9f6d43938631f8143bf7c993b4e7 [2] https://github.com/crossbario/autobahn-python/commit/fe70ceebe04849470b0c81b26ff6e65e709b0d33 Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-08-11 03:35:36 +02:00
import
os
support/testing: add python-crossbar tests This test invokes "crossbar version" command, that checks all dependencies found in setup.py files and prints some system related information. Add haveged to the target to generate enough entropy so crossbar -> pynacl -> libsodium don't hang waiting for /dev/random. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> [Ricardo: move test script to a separate file, remove Python 2 variant, add haveged to target to add entropy and avoid hanging] Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-11-10 03:16:09 +01:00
import
crossbar
support/testing: make crossbar to use umsgpack Since version 19.3.3, python-autobahn assumes that when CPython is used msgpack will be used as well [1]. But it still allows the user to override this behavior by setting an environment variable [2] to use umsgpack. Make the test to explicitly use umsgpack since it is part of the minimal config (python-crossbar selects python-u-msgpack). Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/269139430 [1] https://github.com/crossbario/autobahn-python/commit/ea019b80427c9f6d43938631f8143bf7c993b4e7 [2] https://github.com/crossbario/autobahn-python/commit/fe70ceebe04849470b0c81b26ff6e65e709b0d33 Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-08-11 03:35:36 +02:00
os
.
environ
[
"
AUTOBAHN_USE_UMSGPACK
"
]
=
"
1
"
support/testing: add python-crossbar tests This test invokes "crossbar version" command, that checks all dependencies found in setup.py files and prints some system related information. Add haveged to the target to generate enough entropy so crossbar -> pynacl -> libsodium don't hang waiting for /dev/random. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> [Ricardo: move test script to a separate file, remove Python 2 variant, add haveged to target to add entropy and avoid hanging] Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-11-10 03:16:09 +01:00
crossbar
.
run
(
[
"
version
"
]
)
Reference in New Issue
Copy Permalink