-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #627 from altendky/custom_archive
- Loading branch information
Showing
11 changed files
with
593 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,6 @@ | ||
from plotman import archive, configuration, job, manager | ||
from plotman import archive, job | ||
|
||
|
||
def test_compute_priority(): | ||
assert (archive.compute_priority( job.Phase(major=3, minor=1), 1000, 10) > | ||
archive.compute_priority( job.Phase(major=3, minor=6), 1000, 10) ) | ||
|
||
def test_rsync_dest(): | ||
arch_dir = '/plotdir/012' | ||
arch_cfg = configuration.Archive( | ||
rsyncd_module='plots_mod', | ||
rsyncd_path='/plotdir', | ||
rsyncd_host='thehostname', | ||
rsyncd_user='theusername', | ||
rsyncd_bwlimit=80000 | ||
) | ||
|
||
# Normal usage | ||
assert ('rsync://theusername@thehostname:12000/plots_mod/012' == | ||
archive.rsync_dest(arch_cfg, arch_dir)) | ||
|
||
# Usage for constructing just the prefix, for scanning process tables | ||
# for matching jobs. | ||
assert ('rsync://theusername@thehostname:12000/' == | ||
archive.rsync_dest(arch_cfg, '/')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.