aboutsummaryrefslogtreecommitdiff
path: root/meson_test.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-23 01:19:56 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-23 01:19:56 +0200
commitadb141a36c1d2cdede6bd2cdf2bdb8deb36ea7d5 (patch)
treeae7e19e9f84213d421f6d1cc304733f074e5b3cd /meson_test.py
parenta7b5d30dccbfad7a61912652a865faec90c453d9 (diff)
downloadmeson-adb141a36c1d2cdede6bd2cdf2bdb8deb36ea7d5.zip
meson-adb141a36c1d2cdede6bd2cdf2bdb8deb36ea7d5.tar.gz
meson-adb141a36c1d2cdede6bd2cdf2bdb8deb36ea7d5.tar.bz2
Store test run time in log files.
Diffstat (limited to 'meson_test.py')
-rwxr-xr-xmeson_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson_test.py b/meson_test.py
index fc22a67..e49c31b 100755
--- a/meson_test.py
+++ b/meson_test.py
@@ -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 == '':