1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 19:50:17 +01:00

tests: print logs on failure + fix -cp param (#327)

* tests: pring logs on failure

* fix import

* added job to circleci

* fix functional

* removed debug job
This commit is contained in:
anabwan
2019-05-28 13:45:43 +03:00
committed by GitHub
parent 251dc9ccc0
commit f5ba14575c
2 changed files with 11 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ import time
import pytest
import rl_coach.tests.utils.args_utils as a_utils
import rl_coach.tests.utils.presets_utils as p_utils
from rl_coach.logger import screen
from rl_coach.tests.utils.definitions import Definitions as Def
@@ -59,6 +60,8 @@ def test_preset_args(preset_args, flag, clres, start_time=time.time(),
except AssertionError:
# close process once get assert false
proc.kill()
# if test failed - print logs
screen.error(open(clres.stdout.name).read(), crash=False)
assert False
proc.kill()