diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-21 19:00:35 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-21 19:00:35 +0000 |
commit | dbe4bc877fd1bf6f495844b1c445eb823d9ebaad (patch) | |
tree | 70d28dbaf285c140dcfeb841eb780df143a545d7 /rdiff-backup/rdiff_backup/SetConnections.py | |
parent | 02c207a7d50d0622b2ec43e833d26036b5504af4 (diff) | |
download | rdiff-backup-dbe4bc877fd1bf6f495844b1c445eb823d9ebaad.tar.gz |
Fixed some --restrict options
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@446 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/SetConnections.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/SetConnections.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rdiff-backup/rdiff_backup/SetConnections.py b/rdiff-backup/rdiff_backup/SetConnections.py index 6846953..fb23a1c 100644 --- a/rdiff-backup/rdiff_backup/SetConnections.py +++ b/rdiff-backup/rdiff_backup/SetConnections.py @@ -25,7 +25,7 @@ the related connections. """ -import os +import os, sys from log import Log import Globals, connection, rpath @@ -223,9 +223,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 |