Only setup PGO tests when --pgo is enabled. (GH-14927)

This commit is contained in:
Gregory P. Smith 2019-07-23 21:33:48 -07:00 committed by GitHub
parent 2f224a077a
commit f0807ab24c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -215,8 +215,9 @@ class Regrtest:
removepy(self.tests)
# add default PGO tests if no tests are specified
setup_pgo_tests(self.ns)
if self.ns.pgo:
# add default PGO tests if no tests are specified
setup_pgo_tests(self.ns)
stdtests = STDTESTS[:]
nottests = NOTTESTS.copy()