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

Test::Quattor: set $Test::Quattor::NoAction default to 1 #160

Merged
merged 10 commits into from
Apr 26, 2017

Conversation

stdweird
Copy link
Member

@stdweird stdweird commented Mar 31, 2017

this removes the set_caf_file_close_diff function. it is now default and "just works".

Replaces #150, fixes #139.

@jouvin
Copy link
Contributor

jouvin commented Apr 1, 2017

@stdweird from what I understand, this PR replaces #150. In this case, you should mention it in the description and close #150.

@@ -1206,10 +1206,29 @@ sub remove_any
my $filter = sub {
my $fs = shift;
my $pattern = '^'.$path.'/';
my @del;
foreach my $p (grep {m/$pattern/} sort keys %$fs) {
Copy link
Contributor

@jouvin jouvin Apr 1, 2017

Choose a reason for hiding this comment

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

I have nothing against one letter variable in loops but what $p stands for... It would be good to have something a little clearer...

push(@del, $path);

foreach my $p (@del) {
# look for any hardlink that has $p as target
Copy link
Contributor

Choose a reason for hiding this comment

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

You should better explain what you intend to do here... I found it hard to understand! If I did, you want to ensure that when you delete a hardlink target, one of the hardlinks to this path has its contents updated to the contents of the path about to be deleted (the path expressing in fact the file type in the mocked context).


$filename = sane_path($filename);
my $dfn = $desired_file_contents{$filename};
if (defined($dfn)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why dfn acronym for a desired file contents? Shoud be dfc, shouldn't it?


=pod
Pick up original content (for C<<CAF::FileWriter->close>>) and source
Copy link
Contributor

Choose a reason for hiding this comment

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

and source -> or source?

@stdweird
Copy link
Member Author

@jouvin i tried to improve the explanation a bit

@jouvin
Copy link
Contributor

jouvin commented Apr 14, 2017

@stdweird have you done it already or do you plan to do it?

@stdweird
Copy link
Member Author

@jouvin for got to push force, should be ok now

@jrha
Copy link
Member

jrha commented Apr 24, 2017

@stdweird is this required to be in the next release of the build tools?

@stdweird
Copy link
Member Author

@jrha yes. this PR contains the required cleanup and fixes for the new new FileWriter.

@jrha
Copy link
Member

jrha commented Apr 24, 2017

Thanks, could you respond to @jouvin's comment?

@jrha
Copy link
Member

jrha commented Apr 25, 2017

@jouvin are you happy with this now?

@stdweird
Copy link
Member Author

@jrha @jouvin i can fix the issues thursday, probably not sooner

@jrha
Copy link
Member

jrha commented Apr 25, 2017

Ok, no worries.

@stdweird
Copy link
Member Author

@jrha that simpler than i tought. should be ok now

@jrha
Copy link
Member

jrha commented Apr 26, 2017

Thanks! @jouvin, can you update your review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Mocked CAF::FileWriter attempts to create directories
3 participants