mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 17:11:41 -05:00
Do not hard code log file path in Makefile
This commit is contained in:
parent
cd486f0c5b
commit
69ec2c14ac
2 changed files with 7 additions and 3 deletions
1
Makefile
1
Makefile
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue