Merge pull request #636 from eroullit/develop

unittest: virtualenv support
This commit is contained in:
Alessio Sergi
2015-07-20 12:41:27 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)