mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Count post-cargo build steps in elapsed time
This commit is contained in:
parent
6abee33f91
commit
84d13eacbd
1 changed files with 1 additions and 2 deletions
|
@ -557,8 +557,6 @@ class MachCommands(CommandBase):
|
||||||
features=features, **kwargs
|
features=features, **kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
elapsed = time() - build_start
|
|
||||||
|
|
||||||
# Do some additional things if the build succeeded
|
# Do some additional things if the build succeeded
|
||||||
if status == 0:
|
if status == 0:
|
||||||
if android and not no_package:
|
if android and not no_package:
|
||||||
|
@ -656,6 +654,7 @@ class MachCommands(CommandBase):
|
||||||
|
|
||||||
# Generate Desktop Notification if elapsed-time > some threshold value
|
# Generate Desktop Notification if elapsed-time > some threshold value
|
||||||
|
|
||||||
|
elapsed = time() - build_start
|
||||||
elapsed_delta = datetime.timedelta(seconds=int(elapsed))
|
elapsed_delta = datetime.timedelta(seconds=int(elapsed))
|
||||||
build_message = f"{'Succeeded' if status == 0 else 'Failed'} in {elapsed_delta}"
|
build_message = f"{'Succeeded' if status == 0 else 'Failed'} in {elapsed_delta}"
|
||||||
self.notify("Servo build", build_message)
|
self.notify("Servo build", build_message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue