diff --git a/unitest-restful.py b/unitest-restful.py index 7b77a2b9..14bd691f 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -64,7 +64,7 @@ class TestGlances(unittest.TestCase): global pid print('INFO: [TEST_000] Start the Glances Web Server') - cmdline = "python -m glances -w -p %s" % SERVER_PORT + cmdline = "python -m glances -B localhost -w -p %s" % SERVER_PORT print("Run the Glances Web Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) pid = subprocess.Popen(args) diff --git a/unitest-xmlrpc.py b/unitest-xmlrpc.py index 7e52ec5e..f1310808 100755 --- a/unitest-xmlrpc.py +++ b/unitest-xmlrpc.py @@ -53,7 +53,7 @@ class TestGlances(unittest.TestCase): global pid print('INFO: [TEST_000] Start the Glances Web Server') - cmdline = "python -m glances -s -p %s" % SERVER_PORT + cmdline = "python -m glances -B localhost -s -p %s" % SERVER_PORT print("Run the Glances Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) pid = subprocess.Popen(args)