When I was running BGP Scenario test, I noticed that
Python version on Scenario containers is always 2.7.

e.g., If we just install "python-pip" (as BGP Scenario
test doing), Python 2.7 will always be selected.
$ docker run -it --rm ubuntu:16.04 bash
root@7c7e0bd65575:/# apt -q update && apt install -q -y
--no-install-recommends python-pip
...(snip)
root@7c7e0bd65575:/# python --version
Python 2.7.12

We should switch Python version to the specific one in
order to check compatibility with multi Python versions.
The following patch fixes to switch base Docker image
and enables to use the specific Python version.

Note: With the following patch, non-Python based docker
image (e.g., Ubuntu:16.04) is specified for creating
Ryu container image, it will fail, because "gcc" and
other C header libraries are not installed.

Note: The following patch should be applied after:
  [PATCH 0/2] bgp_scenario_test: Pylint

IWASE Yusuke (1):
  bgp_scenario_test: Switch Python version

 ryu/tests/integrated/bgp/base.py           |  5 ++++-
 ryu/tests/integrated/bgp/base_ip6.py       |  5 ++++-
 ryu/tests/integrated/common/docker_base.py | 10 ----------
 3 files changed, 8 insertions(+), 12 deletions(-)

-- 
2.7.4


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to