From dbbf7dc969375d7e1f4f5ab093773e201d05ee22 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 15 Nov 2022 16:52:43 +0100 Subject: [PATCH] Fixup: start the timer before the phase (#33917) --- lib/spack/spack/installer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index fd2818a6a43..4018b01dd0d 100644 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -2044,9 +2044,8 @@ def _real_install(self): tty.set_debug(inner_debug_level) # Catch any errors to report to logging - phase_fn.execute() - self.timer.start(phase_fn.name) + phase_fn.execute() spack.hooks.on_phase_success(pkg, phase_fn.name, log_file) self.timer.stop(phase_fn.name)