Skip to content

Commit

Permalink
#795 Visual changes to the print_options function.
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8562 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
Nick Centanni committed Jan 27, 2015
1 parent 5887ab0 commit b34aefc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/tests/xpra/perf_config_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ def screensaver(x):
#VNC_JPEG_OPTIONS = [-1, 0, 8]
VNC_JPEG_OPTIONS = [-1, 4]

def print_vars(self):
print("\nCurrent Settings:\n-----------------")
def print_options(self):
print("\nCurrent Settings:")
print("-"*80)
print("CUSTOM_PARAMS: %s" % str(self.CUSTOM_PARAMS))
print("GLX_TESTS: %s" % self.GLX_TESTS)
print("X11_TESTS: %s" % self.X11_TESTS)
Expand Down Expand Up @@ -255,4 +256,4 @@ def print_vars(self):
print("VNC_ZLIB_OPTIONS: %s" % self.VNC_ZLIB_OPTIONS)
print("VNC_COMPRESSION_OPTIONS: %s" % self.VNC_COMPRESSION_OPTIONS)
print("VNC_JPEG_OPTIONS: %s" % self.VNC_JPEG_OPTIONS)
print("-----------------")
print("-"*80)
4 changes: 2 additions & 2 deletions src/tests/xpra/test_measure_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def get_config(config_name):
config = get_config(config_name)
if (config==None):
raise Exception("Could not load config file")
config.print_options()
sys.exit()

if (len(sys.argv) > 2):
csv_name = sys.argv[2]
Expand Down Expand Up @@ -103,8 +105,6 @@ def get_config(config_name):
if not os.path.exists(x):
raise Exception("cannot run tests: %s is missing!" % x)

config.print_vars()

HEADERS = ["Test Name", "Remoting Tech", "Server Version", "Client Version", "Custom Params", "SVN Version",
"Encoding", "Quality", "Speed","OpenGL", "Test Command", "Sample Duration (s)", "Sample Time (epoch)",
"CPU info", "Platform", "Kernel Version", "Xorg version", "OpenGL", "Client Window Manager", "Screen Size",
Expand Down

0 comments on commit b34aefc

Please sign in to comment.