Skip to content

Commit f546fa0

Browse files
committed
UnixInstalledBuild: add CleanupTest step
1 parent 12dd3dd commit f546fa0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎master/custom/factories.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,17 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
156156
compile = ["make", parallel, self.makeTarget]
157157
install = ["make", parallel, self.installTarget]
158158
testopts = testopts + [parallel]
159+
159160
test = [installed_python] + self.interpreterFlags
160161
test += ["-m", "test.regrtest"] + testopts
161162

163+
cleantest = test + ["--cleanup"]
164+
162165
self.addStep(Compile(command=compile))
163166
self.addStep(Install(command=install))
164167
self.addStep(LockInstall())
168+
if regrtest_has_cleanup(branch):
169+
self.addStep(CleanupTest(command=cleantest))
165170
self.addStep(
166171
Test(command=test, timeout=self.test_timeout, usePTY=test_with_PTY)
167172
)

0 commit comments

Comments
 (0)