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

Fix the logic #135

Merged
merged 1 commit into from
Dec 4, 2022
Merged

Fix the logic #135

merged 1 commit into from
Dec 4, 2022

Conversation

hiroyone
Copy link

@hiroyone hiroyone commented Nov 5, 2022

fix #56

The cleanResultsPath method should have an empty folder, but the current logic was removing the directory.
The fixed logic cleans up all files in the directory but keep the directory itself.

@aaron-qa
Copy link

@hiroyone any idea when this will get reviewed/merged? I'm facing the issue this appears to fix.

@hiroyone
Copy link
Author

hiroyone commented Nov 15, 2022

Let's ask the creator.

@tnicola
Hello.
How can we get approval and merge this PR?

@tnicola tnicola merged commit b80ee88 into tnicola:master Dec 4, 2022
@hiroyone hiroyone deleted the fix/runner-results#56 branch December 4, 2022 16:56
@tnicola
Copy link
Owner

tnicola commented Dec 4, 2022

Thanks for your contribution @hiroyone !It's now merged and published in 0.10.0

fs.readdir(resultsPath, (err, files) => {
if (err) console.log(err);
for (const file of files) {
fs.unlink(path.join('path here', file), err => { if (err) console.log(err); });

Choose a reason for hiding this comment

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

Hi @hiroyone - should the string "path here" have been present here? I'm seeing it surface when I run the tool.

image

Copy link
Author

Choose a reason for hiding this comment

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

Oh it should be a mistake.
Instead of 'path here', resultsPath seems correct, isn't it?

Copy link
Author

Choose a reason for hiding this comment

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

Merged. #149

Choose a reason for hiding this comment

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

Thank you @hiroyone for updating it so quickly! I've tested and the error is gone.

@hiroyone hiroyone mentioned this pull request Dec 20, 2022
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.

Script failed when 'runner-results' folder not exist or if not empty
4 participants