-
Notifications
You must be signed in to change notification settings - Fork 790
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
Improve directory attribute refactor - Break up PR #18161 - Part 1 #18195
base: main
Are you sure you want to change the base?
Improve directory attribute refactor - Break up PR #18161 - Part 1 #18195
Conversation
✅ No release notes required |
e0b845d
to
e2b0db7
Compare
try | ||
Directory.Delete(initialProject.ProjectDir, true) | ||
with _ -> () | ||
() //try Directory.Delete(initialProject.ProjectDir, true) with _ -> () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we not deleting?
Do we need a methodcall which is a conditional no-op?
@@ -19,7 +19,7 @@ let tempDirectoryOfThisTestRun = | |||
|
|||
let cleanUpTemporaryDirectoryOfThisTestRun () = | |||
if tempDirectoryOfThisTestRun.IsValueCreated then | |||
try tempDirectoryOfThisTestRun.Value.Delete(true) with _ -> () | |||
() //try tempDirectoryOfThisTestRun.Value.Delete(true) with _ -> () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same here
@@ -244,7 +244,7 @@ An error occurred getting netcoreapp references: %A{e} | |||
raise (Exception (message, e)) | |||
finally | |||
if cleanUp then | |||
try Directory.Delete(projectDirectory, recursive=true) with | _ -> () | |||
() //try Directory.Delete(projectDirectory, recursive=true) with | _ -> () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please post an assurance that the number of tests executed is the same or higher?
This breaks up the directory attribute refactor, which is enormous.
This inital PR contains the test framework code changes.
And 1 quite large folder of test cases that use baselines a fair amount.
/cc @T-Gro