mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-05-02 19:13:06 +03:00
[cdc_rsync] Add initial support for Windows (#51)
Adds a ServerArch class whose job it is to encapsulate differences between Windows and Linux cdc_rsync_servers. It detects the type based on a heuristic in the destination path. This is not fool proof and will probably require further work, like falling back to the other type if the detected one doesn't work. Uses the ServerArch class to determine the different commands to start the server and to deploy the server. Note that the functionality is not well tested on Windows yet, but copying plain files works.
This commit is contained in:
@@ -59,7 +59,7 @@ class DirectoryTest(test_base.CdcStreamTest):
|
||||
self._assert_cdc_fuse_mounted()
|
||||
original = utils.get_ssh_command_output(self.ls_cmd)
|
||||
|
||||
# Remove directory on workstation => empty directory on gamelet.
|
||||
# Remove directory on workstation => empty remote directory.
|
||||
utils.remove_test_directory(self.local_base_dir)
|
||||
self.assertTrue(self._wait_until_remote_dir_changed(original))
|
||||
self._test_dir_content(files=[], dirs=[])
|
||||
@@ -101,7 +101,7 @@ class DirectoryTest(test_base.CdcStreamTest):
|
||||
self._assert_cdc_fuse_mounted()
|
||||
original = utils.get_ssh_command_output(self.ls_cmd)
|
||||
|
||||
# Remove directory on workstation => empty directory on gamelet.
|
||||
# Remove directory on workstation => empty remote directory.
|
||||
utils.remove_test_directory(self.local_base_dir)
|
||||
self.assertTrue(self._wait_until_remote_dir_changed(original))
|
||||
self._test_dir_content(files=[], dirs=[])
|
||||
|
||||
Reference in New Issue
Block a user