Store test run time in log files.

This commit is contained in:
Jussi Pakkanen 2013-03-23 01:19:56 +02:00
parent a7b5d30dcc
commit adb141a36c
1 changed files with 2 additions and 2 deletions

View File

@ -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 == '':