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)
---------------------------
......
......@@ -25,7 +25,7 @@ the related connections.
"""
import os
import os, sys
from log import Log
import Globals, FilenameMapping, connection, rpath
......@@ -226,9 +226,9 @@ def test_connection(conn_number):
print "Testing server started by: ", __conn_remote_cmds[conn_number]
conn = Globals.connections[conn_number]
try:
assert conn.pow(2,3) == 8
assert conn.os.path.join("a", "b") == "a/b"
version = conn.reval("lambda: Globals.version")
assert conn.Globals.get('current_time') is None
assert type(conn.os.getuid()) is int
version = conn.Globals.get('version')
except:
sys.stderr.write("Server tests failed\n")
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