mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Add a per-test duration log when running tests
This commit is contained in:
@@ -2,6 +2,7 @@ import os
|
||||
import traceback
|
||||
import copy
|
||||
import re
|
||||
import time
|
||||
import renderdoc as rd
|
||||
from . import util
|
||||
from . import analyse
|
||||
@@ -332,7 +333,12 @@ class TestCase:
|
||||
self.controller.Shutdown()
|
||||
|
||||
def invoketest(self, debugMode):
|
||||
start_time = time.time()
|
||||
self.run()
|
||||
duration = time.time() - start_time
|
||||
minutes = int(duration / 60) % 60
|
||||
seconds = round(duration % 60)
|
||||
log.print("Test ran in {:02}:{:02}".format(minutes, seconds))
|
||||
self.debugMode = debugMode
|
||||
|
||||
def get_first_draw(self):
|
||||
|
||||
Reference in New Issue
Block a user