mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-25 18:23:41 +03:00
Merge pull request #2051 from aekoroglu/develop
unitary tests should run loopback interface
This commit is contained in:
commit
feed48aa8d
@ -64,7 +64,7 @@ class TestGlances(unittest.TestCase):
|
|||||||
global pid
|
global pid
|
||||||
|
|
||||||
print('INFO: [TEST_000] Start the Glances Web Server')
|
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)
|
print("Run the Glances Web Server on port %s" % SERVER_PORT)
|
||||||
args = shlex.split(cmdline)
|
args = shlex.split(cmdline)
|
||||||
pid = subprocess.Popen(args)
|
pid = subprocess.Popen(args)
|
||||||
|
@ -53,7 +53,7 @@ class TestGlances(unittest.TestCase):
|
|||||||
global pid
|
global pid
|
||||||
|
|
||||||
print('INFO: [TEST_000] Start the Glances Web Server')
|
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)
|
print("Run the Glances Server on port %s" % SERVER_PORT)
|
||||||
args = shlex.split(cmdline)
|
args = shlex.split(cmdline)
|
||||||
pid = subprocess.Popen(args)
|
pid = subprocess.Popen(args)
|
||||||
|
Loading…
Reference in New Issue
Block a user