mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-16 12:58:13 -04:00
Merge pull request #636 from eroullit/develop
unittest: virtualenv support
This commit is contained in:
@@ -79,7 +79,7 @@ class TestGlances(unittest.TestCase):
|
||||
|
||||
global pid
|
||||
|
||||
cmdline = "/usr/bin/python -m glances -w -p %s" % SERVER_PORT
|
||||
cmdline = "/usr/bin/env python -m glances -w -p %s" % SERVER_PORT
|
||||
print("Run the Glances Web Server on port %s" % SERVER_PORT)
|
||||
args = shlex.split(cmdline)
|
||||
pid = subprocess.Popen(args)
|
||||
|
||||
@@ -86,7 +86,7 @@ class TestGlances(unittest.TestCase):
|
||||
|
||||
global pid
|
||||
|
||||
cmdline = "/usr/bin/python -m glances -s -p %s" % SERVER_PORT
|
||||
cmdline = "/usr/bin/env python -m glances -s -p %s" % SERVER_PORT
|
||||
print("Run the Glances Server on port %s" % SERVER_PORT)
|
||||
args = shlex.split(cmdline)
|
||||
pid = subprocess.Popen(args)
|
||||
|
||||
Reference in New Issue
Block a user