diff options
author | Mukilan Thiyagarajan <me@mukilan.in> | 2023-05-21 12:15:00 +0530 |
---|---|---|
committer | Mukilan Thiyagarajan <me@mukilan.in> | 2023-05-21 16:13:36 +0530 |
commit | 84d13eacbda42c37b51ff6082ce705a4c868eb4c (patch) | |
tree | 4bba86eef252d1b41897df04712e49cb384e468a /python | |
parent | 6abee33f91d4591e333ff08de438b25599e5325b (diff) | |
download | servo-84d13eacbda42c37b51ff6082ce705a4c868eb4c.tar.gz servo-84d13eacbda42c37b51ff6082ce705a4c868eb4c.zip |
Count post-cargo build steps in elapsed time
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/build_commands.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 45dcef9ceec..b65321cb5d3 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -557,8 +557,6 @@ class MachCommands(CommandBase): features=features, **kwargs ) - elapsed = time() - build_start - # Do some additional things if the build succeeded if status == 0: if android and not no_package: @@ -656,6 +654,7 @@ class MachCommands(CommandBase): # Generate Desktop Notification if elapsed-time > some threshold value + elapsed = time() - build_start elapsed_delta = datetime.timedelta(seconds=int(elapsed)) build_message = f"{'Succeeded' if status == 0 else 'Failed'} in {elapsed_delta}" self.notify("Servo build", build_message) |