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

Preliminary cleaning of the ./file dir under Win or if the flag noSync is set #121

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

AndreaBartolini
Copy link
Contributor

Under Windows or if the --noSync flag is set the results files are moved/copied depending on the current value of the --clean flag. This means that if the --clean flag is = False the new test will find and copy to the result dir all the old files that are not overwritten by the new test itself.

To avoid this issue the best way is to clean the ./files directory when a new library test is started, independently from the value of the --clean flag.

This PR adds a preliminary clean of the ./files dir if the detected os is Windows or the flag noSync is set. Probably this is not necessary under linux if rsync is used to move the results files.

@casella casella requested a review from adrpo September 22, 2024 22:52
@casella
Copy link
Collaborator

casella commented Sep 22, 2024

@adrpo can you please check before merging? Thanks!

Copy link
Member

@adrpo adrpo left a comment

Choose a reason for hiding this comment

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

Seems OK.

Copy link
Member

@adrpo adrpo left a comment

Choose a reason for hiding this comment

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

OK!

@adrpo adrpo merged commit cee4043 into OpenModelica:master Sep 25, 2024
5 checks passed
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.

3 participants