-
Notifications
You must be signed in to change notification settings - Fork 97
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
[TestSuiteBuilder] Updating the test-suite clobber step #75
base: main
Are you sure you want to change the base?
Conversation
This change modifies the step that clobbers the build directory of the llvm-test-suite to use the standardized `f.addStep(steps.RemoveDirectory())` that the base class, UnifiedTreeBuilder, uses instead of the more explicit `f.addStep(ShellCommand(command=['rm', '-rf']))`
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.
LGTM
Minor indentation nit.
f.addStep(steps.RemoveDirectory( | ||
name='Clean Test Suite Build dir' % test_suite_workdir, | ||
dir=test_suite_workdir, | ||
haltOnFailure=False, | ||
flunkOnFailure=False, | ||
doStepIf=cleanBuildRequested, | ||
)) |
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.
nit: Should we keep to the same indentation here as other files? eg .
f.addStep(steps.RemoveDirectory( | |
name='Clean Test Suite Build dir' % test_suite_workdir, | |
dir=test_suite_workdir, | |
haltOnFailure=False, | |
flunkOnFailure=False, | |
doStepIf=cleanBuildRequested, | |
)) | |
f.addStep(steps.RemoveDirectory(name='Clean Test Suite Build dir' % test_suite_workdir, | |
dir=test_suite_workdir, | |
haltOnFailure=False, | |
flunkOnFailure=False, | |
doStepIf=cleanBuildRequested, | |
)) |
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.
I think the indenting would probably start under name=
, like the other steps.
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 patch looks fine with a small thing to fix.
# The default value of cleanBuildRequested is TRUE as we should always | ||
# clobber the build directory to test each freshly built compiler. | ||
f.addStep(steps.RemoveDirectory( | ||
name='Clean Test Suite Build dir' % test_suite_workdir, |
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 use Python3 .format()
here instead, please?
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.
No further comments from me once previous comments and conflict has been addressed.
f.addStep(steps.RemoveDirectory( | ||
name='Clean Test Suite Build dir' % test_suite_workdir, | ||
dir=test_suite_workdir, | ||
haltOnFailure=False, | ||
flunkOnFailure=False, | ||
doStepIf=cleanBuildRequested, | ||
)) |
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.
I think the indenting would probably start under name=
, like the other steps.
This change modifies the step that clobbers the build directory of the llvm-test-suite to use the standardized
f.addStep(steps.RemoveDirectory())
that the base class, UnifiedTreeBuilder, uses instead of the more explicitf.addStep(ShellCommand(command=['rm', '-rf']))