diff options
author | Franza Cavalcante <franza.cavalcante@bestateless.com> | 2019-06-20 16:46:18 -0600 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-06-22 19:53:11 +0900 |
commit | 8c90684b276d994d09b3dc0d5a030900bbb39929 (patch) | |
tree | 4fd885a311aaf800fcf7527ec06f9effd072fedb /test/scenario_test/README.md | |
parent | 7c2f0967afba5e91e0ad1c76e9f71c4f578d5844 (diff) |
Python3 support to gobgp tests
This PR removes dependencies on old Fabric version, as it's not
supported by Python3.
The current Fabric versions don't support the colors and indent
used previously, so we found substitute methods from other
libraries and defined these in the library files.
The local function from fabric is now just a wrapper to invoke's
run function. All the files were processed through 2to3 command.
All the tests were executed and we don't see any difference on
the outputs when running Python2 or Python3.
The creation of gobgp container is removed from base.py into
fabfile.py, in order to comply with Fabric2 changes and simplify
dependencies.
Diffstat (limited to 'test/scenario_test/README.md')
-rw-r--r-- | test/scenario_test/README.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/scenario_test/README.md b/test/scenario_test/README.md index 84ab2d71..2b3d9733 100644 --- a/test/scenario_test/README.md +++ b/test/scenario_test/README.md @@ -57,7 +57,7 @@ Execute the following commands inside the VM to install the dependencies: ```shell $ sudo apt-get update - $ sudo apt-get install git python-pip python-dev iputils-arping bridge-utils lv + $ sudo apt-get install git python3-pip python3-dev iputils-arping bridge-utils lv $ sudo wget https://raw.github.com/jpetazzo/pipework/master/pipework -O /usr/local/bin/pipework $ sudo chmod 755 /usr/local/bin/pipework ``` @@ -91,7 +91,7 @@ You also need this operation at every modification to the source code. ```shell $ cd $GOPATH/src/github.com/osrg/gobgp -$ sudo fab -f ./test/lib/base.py make_gobgp_ctn --set tag=gobgp +$ sudo fab2 -r ./test/lib make-gobgp-ctn ``` ## Run test @@ -116,7 +116,7 @@ $ sudo fab -f ./test/lib/base.py make_gobgp_ctn --set tag=gobgp ```shell $ cd $GOPATH/src/github.com/osrg/gobgp/test/scenario_test - $ sudo -E PYTHONPATH=$GOBGP/test python <scenario test name>.py + $ sudo -E PYTHONPATH=$GOBGP/test python3 <scenario test name>.py ... OK ``` |