Skip to content

Commit

Permalink
get the svnversion from the xpra source as fallback
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@6548 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 24, 2014
1 parent 885a1e0 commit f58aa3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tests/xpra/test_measure_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,13 @@ def get_stderr(command):
VNCVIEWER_VERSION = "TigerVNC Viewer %s" % (v_lines[0].split()[5])
print ("VNCVIEWER_VERSION=%s" % VNCVIEWER_VERSION)

SVN_VERSION = getoutput(["svnversion", "-n"])
#get svnversion, prefer directly from svn:
try:
SVN_VERSION = getoutput(["svnversion", "-n"]).split(":")[-1]
except:
SVN_VERSION = ""
if not SVN_VERSION:
SVN_VERSION = getoutput(["python", "-c", "from xpra.src_info import REVISION,LOCAL_MODIFICATIONS;print(('r%s%s' % (REVISION, ' M'[int(bool(LOCAL_MODIFICATIONS))])).strip())"])

WINDOW_MANAGER = os.environ.get("DESKTOP_SESSION", "unknown")

Expand Down

0 comments on commit f58aa3b

Please sign in to comment.