Commit 43983a88 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

testutils: Print name of test program before running it



While the name can be looked up in Makefile.am, this
is useful when an automated test just hangs and needs
to be killed.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 6d7cc5ff
......@@ -22,6 +22,7 @@
"""Utilities for unit testing"""
import os
import sys
import stat
import tempfile
import unittest
......@@ -40,6 +41,10 @@ class GanetiTestProgram(unittest.TestProgram):
"""
logging.basicConfig(filename=os.devnull)
sys.stderr.write("Running %s\n" % self.progName)
sys.stderr.flush()
return unittest.TestProgram.runTests(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment