Commit ab6ef3fa authored by Petr Špaček's avatar Petr Špaček

Deckard: keep working directory when test fails because of missing definitions

This helps debugging problems with missing definitions because you can
look into PCAP.
parent acd66f58
......@@ -301,9 +301,9 @@ def play_object(path, args, prog_cfgs):
raise ValueError('process %s terminated with return code %s'
% (daemon['cfg']['name'], daemon['proc'].returncode))
# Do not clear files if the server crashed (for analysis)
shutil.rmtree(tmpdir)
if server.undefined_answers > 0:
raise ValueError('the scenario does not define all necessary answers (see error log)')
shutil.rmtree(tmpdir)
def test_platform():
......
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