Commit a5b72ab2 authored by bescoto's avatar bescoto

--test-server/--restrict bug fix


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@445 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 4faf9b77
New in v0.12.5 (??????????)
---------------------------
Fixed bug in --test-server when using --restrict security options
(test would fail improperly). Thanks to Maik Schreiber for report.
New in v0.12.4 (2003/09/13) New in v0.12.4 (2003/09/13)
--------------------------- ---------------------------
......
...@@ -25,7 +25,7 @@ the related connections. ...@@ -25,7 +25,7 @@ the related connections.
""" """
import os import os, sys
from log import Log from log import Log
import Globals, FilenameMapping, connection, rpath import Globals, FilenameMapping, connection, rpath
...@@ -226,9 +226,9 @@ def test_connection(conn_number): ...@@ -226,9 +226,9 @@ def test_connection(conn_number):
print "Testing server started by: ", __conn_remote_cmds[conn_number] print "Testing server started by: ", __conn_remote_cmds[conn_number]
conn = Globals.connections[conn_number] conn = Globals.connections[conn_number]
try: try:
assert conn.pow(2,3) == 8 assert conn.Globals.get('current_time') is None
assert conn.os.path.join("a", "b") == "a/b" assert type(conn.os.getuid()) is int
version = conn.reval("lambda: Globals.version") version = conn.Globals.get('version')
except: except:
sys.stderr.write("Server tests failed\n") sys.stderr.write("Server tests failed\n")
raise raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment