Do not hard code log file path in Makefile

This commit is contained in:
Takafumi Arakaki 2012-09-18 17:39:24 +02:00
parent cd486f0c5b
commit 69ec2c14ac
2 changed files with 7 additions and 3 deletions

View file

@ -37,4 +37,3 @@ travis-ci: ert-compile
$(EMACS) --version
python --version
$(TESTEIN) --no-func-test --clean-elc -e $(EMACS)
tail -n3 log/test-load_messages_batch_$(EMACS).log

View file

@ -166,12 +166,17 @@ class TestRunner(BaseRunner):
return self.proc
def report(self):
if self.proc.wait() != 0:
(stdout, _) = self.proc.communicate()
if self.proc.returncode != 0:
print "{0} failed".format(self.testfile)
print self.proc.stdout.read()
print stdout
self.failed = True
else:
print "{0} OK".format(self.testfile)
for line in reversed(stdout.splitlines()):
if line.startswith('Ran'):
print line
break
self.failed = False
return int(self.failed)