mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
Fix magic-folder cli tests
convert path to abs path when matching strings in the generated config file.
This commit is contained in:
parent
a1beef34a7
commit
b32b61e727
@ -74,8 +74,7 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
|
||||
|
||||
def check_config(self, client_num, local_dir):
|
||||
client_config = fileutil.read(os.path.join(self.get_clientdir(i=client_num), "tahoe.cfg"))
|
||||
# XXX utf-8?
|
||||
local_dir = local_dir.encode('utf-8')
|
||||
local_dir = argv_to_abspath(str(local_dir))
|
||||
ret = re.search("\[magic_folder\]\nenabled = True\nlocal.directory = %s" % (local_dir,), client_config)
|
||||
self.failIf(ret is None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user