Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zippy:jx:packages-ready
python-Glances
fix-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-tests.patch of Package python-Glances
diff --git a/unitest-restful.py b/unitest-restful.py index 7b77a2b..5f991bd 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -22,6 +22,7 @@ import shlex import subprocess +import sys import time import numbers import unittest @@ -64,7 +65,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 = "%s -m glances -w -p %s" % (sys.executable, 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 7e52ec5..384fa46 100755 --- a/unitest-xmlrpc.py +++ b/unitest-xmlrpc.py @@ -23,6 +23,7 @@ import json import shlex import subprocess +import sys import time import unittest @@ -53,7 +54,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 = "%s -m glances -s -p %s" % (sys.executable, SERVER_PORT) print("Run the Glances Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) pid = subprocess.Popen(args)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor