Merge "tests: Attempt to use configured tmp in xprofile tests"

This commit is contained in:
Zuul
2024年08月28日 23:43:28 +00:00
committed by Gerrit Code Review

View File

@@ -83,8 +83,12 @@ class TestProfileMiddleware(unittest.TestCase):
@unittest.skipIf(xprofile is None, "can't import xprofile")
def setUp(self):
self.got_statuses = []
self.app = ProfileMiddleware(FakeApp, {})
self.tempdir = os.path.dirname(self.app.log_filename_prefix)
self.tempdir = tempfile.mkdtemp()
log_filename_prefix = os.path.join(
self.tempdir,
'log/swift/profile/default.profile')
conf = {'log_filename_prefix': log_filename_prefix}
self.app = ProfileMiddleware(FakeApp, conf)
self.pids = ['123', '456', str(os.getpid())]
profiler = xprofile.get_profiler('eventlet.green.profile')
for pid in self.pids:
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.