Fixup: start the timer before the phase (#33917)

This commit is contained in:
Harmen Stoppels 2022-11-15 16:52:43 +01:00 committed by Massimiliano Culpo
parent 8a71aa874f
commit dbbf7dc969

View File

@ -2044,9 +2044,8 @@ def _real_install(self):
tty.set_debug(inner_debug_level) tty.set_debug(inner_debug_level)
# Catch any errors to report to logging # Catch any errors to report to logging
phase_fn.execute()
self.timer.start(phase_fn.name) self.timer.start(phase_fn.name)
phase_fn.execute()
spack.hooks.on_phase_success(pkg, phase_fn.name, log_file) spack.hooks.on_phase_success(pkg, phase_fn.name, log_file)
self.timer.stop(phase_fn.name) self.timer.stop(phase_fn.name)