Commit c729b7db authored by André Anjos's avatar André Anjos 💬

Don't use docker-machine for tests

parent 1ee108b6
Pipeline #4705 failed with stage
in 1 minute and 30 seconds
...@@ -84,6 +84,7 @@ We use specific docker images to run user algorithms. Download the following ...@@ -84,6 +84,7 @@ We use specific docker images to run user algorithms. Download the following
base images before you try to run tests or experiments on your computer:: base images before you try to run tests or experiments on your computer::
$ docker pull beats/py27:system $ docker pull beats/py27:system
$ docker pull debian:8.4
Optionally, also download the following images to be able to re-run experiments Optionally, also download the following images to be able to re-run experiments
downloaded from the BEAT platform (not required for unit testing):: downloaded from the BEAT platform (not required for unit testing)::
......
...@@ -50,7 +50,7 @@ def get_network_ip_address(host_address): ...@@ -50,7 +50,7 @@ def get_network_ip_address(host_address):
import socket import socket
import difflib import difflib
possible_addresses = socket.gethostbyname_ex(socket.gethostname())[2] possible_addresses = socket.gethostbyname_ex(socket.gethostname())[2]
return difflib.get_close_matches(host_address, possible_addresses)[0] return difflib.get_close_matches(host_address, possible_addresses, cutoff=0)[0]
class Server(gevent.Greenlet): class Server(gevent.Greenlet):
......
...@@ -55,7 +55,7 @@ class AsyncTest(unittest.TestCase): ...@@ -55,7 +55,7 @@ class AsyncTest(unittest.TestCase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
cls.host = Host(use_machine='default') cls.host = Host()
cls.host.setup() cls.host.setup()
......
...@@ -59,7 +59,7 @@ class TestExecution(unittest.TestCase): ...@@ -59,7 +59,7 @@ class TestExecution(unittest.TestCase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
cls.host = Host(use_machine='default') cls.host = Host()
cls.host.setup() cls.host.setup()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment