Store test run time in log files.
This commit is contained in:
parent
a7b5d30dcc
commit
adb141a36c
|
@ -14,7 +14,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import sys, subprocess, time
|
||||
import sys, subprocess, time, datetime
|
||||
from optparse import OptionParser
|
||||
|
||||
parser = OptionParser()
|
||||
|
@ -38,7 +38,7 @@ def run_tests(options, datafilename):
|
|||
wrap = [options.wrapper]
|
||||
logfilename = logfile_base + '-' + options.wrapper.replace(' ', '_') + '.txt'
|
||||
logfile = open(logfilename, 'w')
|
||||
logfile.write('Log file for tests.\n\n')
|
||||
logfile.write('Log of Meson test suite run on %s.\n\n' % datetime.datetime.now().isoformat())
|
||||
for line in open(datafilename, 'r'):
|
||||
line = line.strip()
|
||||
if line == '':
|
||||
|
|
Loading…
Reference in New Issue