Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up back_up_file implementation & test #3

Merged
merged 2 commits into from
Aug 17, 2017

Conversation

boegel
Copy link

@boegel boegel commented Aug 17, 2017

First round of cleanup for easybuilders#2134, only touching back_up_file for now; more to come (trying to send you bite-sized PRs)

Re-ran the original test after cleaning up back_up_file to make sure behaviour remains the same, then also cleaned up test.

One thing that came to mind is that it's maybe better to back up files with a more meaningful filename like test.txt_201708170828, i.e. date + timestamp as increasing number, and on a clash, we can simply sleep for 1 sec and try again?

"""
fn_pref, fn_suff = '', ''
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use fn_prefix and fn_suffix. But that's a minor thing, everything else looks great.

@damianam
Copy link
Owner

In it goes, thanks!

@damianam damianam merged commit 8163498 into damianam:backup_modules Aug 17, 2017
damianam pushed a commit that referenced this pull request Mar 6, 2018
update test_load, Modules v4.0 does not reload already loaded modules
damianam pushed a commit that referenced this pull request Oct 9, 2018
reworked implementation of Singularity integration
damianam pushed a commit that referenced this pull request Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants