Closed alshaboti closed 5 years ago
Same error also occurs when using make
root@bd70488ad5bb:/faucetagent# make test
* Using GOPATH=/root/go
GOPATH=/root/go PATH=/root/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ./agenttest.py -v
ERROR
======================================================================
ERROR: setUpClass (__main__.EndToEndTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./agenttest.py", line 437, in setUpClass
assert which(dep), ("cannot find '%s' in $PATH" % dep)
AssertionError: cannot find 'ping' in $PATH
----------------------------------------------------------------------
Ran 0 tests in 0.019s
FAILED (errors=1)
makefile:35: recipe for target 'test' failed
make: *** [test] Error 1
Hmm, since it works in Travis, there must be some difference in your environment.
Can you confirm that the same GOPATH
error occurs if you don't change makefile
and instead run sudo make test
so that GOPATH
is set properly?
Can you confirm that the same PATH
issues occur if you add telnet
and net-tools
after openvswitch-switch
in test-dependencies.sh
? If so, then perhaps it's not a dependency issue but an issue of telnet
and ping
not being in the PATH
that sudo
is resetting to.
@alshaboti Were you able to look at this? Thanks for testing it out btw.
@alshaboti added #31 which should address the dependencies
I couldn't run agenttest.py. I used the following commands, which run just fine.
However, I got the following errors when I tried to run
./agenttest.py
1- PATH and GOPATH env variables are not updated, although I am running previous commands in the same shell.So, I re-exported
PATH
andGOPATH
2- cannot find
ping
in $PATHAs
iputils-ping
is missing, I installed it and I run it again. 3- Mininet errorCannot find required executable ifconfig.
It works if I installed
net-tools
package4- Seems as Mininet can't find Faucet! Faucet is already installed (version 1.9.7.dev9)