Skip to content

Commit

Permalink
Merge pull request #688 from anarkiwi/master
Browse files Browse the repository at this point in the history
Move Docker tests to python3.
  • Loading branch information
anarkiwi authored Jun 5, 2017
2 parents 561c5fc + 50bf16a commit 969eeae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ RUN \
iputils-ping \
ladvd \
libpython2.7-dev \
libpython3-dev \
libyaml-dev \
ndisc6 \
net-tools \
netcat-openbsd \
psmisc \
python-pip \
python3-pip \
sudo \
tcpdump \
vlan \
wpasupplicant


RUN \
git clone -b 2.2.2 https://github.com/mininet/mininet && \
mininet/util/install.sh -nfv && \
Expand All @@ -33,8 +36,9 @@ COPY ./ /faucet-src/
RUN \
pip install --upgrade pip && \
pip install setuptools wheel virtualenv --upgrade && \
pip install -r /faucet-src/requirements.txt \
-r /faucet-src/test-requirements.txt && \
pip install /faucet-src
pip install -r /faucet-src/test-requirements.txt && \
pip3 install setuptools wheel virtualenv --upgrade && \
pip3 install -r /faucet-src/requirements.txt && \
pip3 install /faucet-src

CMD ["/faucet-src/docker/runtests.sh"]
2 changes: 1 addition & 1 deletion tests/faucet_mininet_test_topo.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _command(self, env, tmpdir, name, args):
for var, val in list(sorted(env.items())):
env_vars.append('='.join((var, val)))
script_wrapper.write(
'PYTHONPATH=..:../faucet %s exec ryu-manager %s $*\n' % (
'PYTHONPATH=.:..:../faucet %s exec ryu-manager %s $*\n' % (
' '.join(env_vars), args))
script_wrapper.close()
return '/bin/sh %s' % script_wrapper_name
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ryu.controller.handler import set_ev_cls

from faucet.faucet import EventFaucetAPIRegistered
from faucet.faucet_api import FaucetAPI
from faucet_api import FaucetAPI


class TestFaucetAPI(app_manager.RyuApp):
Expand Down

0 comments on commit 969eeae

Please sign in to comment.