[Buildroot] [git commit] support/testing: make crossbar to use umsgpack

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Aug 11 12:17:28 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=d23056ffe190271510ef0babebc740dc1f21611b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 at gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Cc: Yegor Yefremov <yegorslists at googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 support/testing/tests/package/sample_python_crossbar.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/support/testing/tests/package/sample_python_crossbar.py b/support/testing/tests/package/sample_python_crossbar.py
index 3695fe92c0..374cccd837 100644
--- a/support/testing/tests/package/sample_python_crossbar.py
+++ b/support/testing/tests/package/sample_python_crossbar.py
@@ -1,3 +1,5 @@
+import os
 import crossbar
 
+os.environ["AUTOBAHN_USE_UMSGPACK"] = "1"
 crossbar.run(["version"])


More information about the buildroot mailing list