1 |
"""commontest - Some functions and constants common to several test cases""" |
"""commontest - Some functions and constants common to several test cases""" |
2 |
import os, sys, code |
import os, sys, code |
3 |
|
# Avoid circularities |
4 |
from rdiff_backup.log import Log |
from rdiff_backup.log import Log |
5 |
from rdiff_backup.rpath import RPath |
from rdiff_backup.rpath import RPath |
6 |
from rdiff_backup import Globals, Hardlink, SetConnections, Main, \ |
from rdiff_backup import Globals, Hardlink, SetConnections, Main, \ |
7 |
selection, lazy, Time, rpath, eas_acls, rorpiter, Security |
selection, lazy, Time, rpath, eas_acls, rorpiter, Security |
8 |
|
|
9 |
|
|
10 |
RBBin = "../rdiff-backup" |
RBBin = "../rdiff-backup" |
11 |
SourceDir = "../rdiff_backup" |
SourceDir = "../rdiff_backup" |
12 |
AbsCurdir = os.getcwd() # Absolute path name of current directory |
AbsCurdir = os.getcwd() # Absolute path name of current directory |
385 |
if use_locals: local_dict = locals() |
if use_locals: local_dict = locals() |
386 |
else: local_dict = globals() |
else: local_dict = globals() |
387 |
code.InteractiveConsole(local_dict).interact() |
code.InteractiveConsole(local_dict).interact() |
388 |
|
|
389 |
|
|