mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 10:25:17 +00:00
Highlight error msg in console
This commit is contained in:
parent
1a6b3c3f99
commit
8943f70a52
@ -8,6 +8,7 @@ import sys
|
||||
import tempfile
|
||||
import time
|
||||
import traceback
|
||||
from Tank.Plugins.ConsoleOnline import RealConsoleMarkup
|
||||
|
||||
# TODO: --manual-start
|
||||
# TODO: add system resources busy check
|
||||
@ -255,7 +256,9 @@ class ConsoleTank:
|
||||
|
||||
except Exception as ex:
|
||||
self.log.debug("Exception: %s", traceback.format_exc(ex))
|
||||
sys.stdout.write(RealConsoleMarkup.RED)
|
||||
self.log.error("%s", ex)
|
||||
sys.stdout.write(RealConsoleMarkup.RESET)
|
||||
rc = self.graceful_shutdown()
|
||||
|
||||
self.log.info("Done performing test with code %s", rc)
|
||||
|
@ -86,8 +86,7 @@ class TankCore:
|
||||
def wait_for_finish(self):
|
||||
self.log.info("Waiting for test to finish...")
|
||||
if not self.plugins:
|
||||
self.log.warn("It's strange: we have no plugins loaded...")
|
||||
return 1;
|
||||
raise RuntimeError("It's strange: we have no plugins loaded...")
|
||||
|
||||
while True:
|
||||
begin_time = time.time()
|
||||
|
Loading…
Reference in New Issue
Block a user