Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
python-Glances
fix-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-tests.patch of Package python-Glances
Index: glances-3.3.1/unitest-restful.py =================================================================== --- glances-3.3.1.orig/unitest-restful.py +++ glances-3.3.1/unitest-restful.py @@ -12,6 +12,7 @@ import shlex import subprocess +import sys import time import numbers import unittest @@ -58,7 +59,7 @@ class TestGlances(unittest.TestCase): if os.path.isfile("./venv/bin/python"): cmdline = "./venv/bin/python" else: - cmdline = "python" + cmdline = sys.executable cmdline += " -m glances -B localhost -w -p %s" % SERVER_PORT print("Run the Glances Web Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) Index: glances-3.3.1/unitest-xmlrpc.py =================================================================== --- glances-3.3.1.orig/unitest-xmlrpc.py +++ glances-3.3.1/unitest-xmlrpc.py @@ -13,6 +13,7 @@ import json import shlex import subprocess +import sys import time import unittest import os @@ -47,7 +48,7 @@ class TestGlances(unittest.TestCase): if os.path.isfile("./venv/bin/python"): cmdline = "./venv/bin/python" else: - cmdline = "python" + cmdline = sys.executable cmdline += " -m glances -B localhost -s -p %s" % SERVER_PORT print("Run the Glances Server on port %s" % SERVER_PORT) args = shlex.split(cmdline)
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