Skip to content

Better output log names and keep full testname in log file

Arvid Jakobsson requested to merge arvid@better_output_log_names into master

This merge request introduces 3 changes in pytest-regtest that simplifies debugging of failed regression tests, as requested in tezos/tezos#668 (closed):

  • Previously, if the regression log cannot be found the result would be the same as if the regression logs was empty. This could be confusing, as these two cases could not be distinguished. This MR changes so that a missing regression log is the same as the regression log containing pytest-regtest error: Could not find recorded output file {result_file}, thus indicating where the regression log is expected to be found.
  • Previously, when the filename of the regression log exceeded 100 characters, it would be replaced by "test_file_name.[hash of test case and parameters].out". This made it hard to find the regression logs for specific files. In this MR, we change this so that as much as possible is kept form prefix, and then add the hash.
  • We also change the format of the regression log so that the first line is the full name of the test, followed by an empty line, and followed by the original regression log.
Edited by Arvid Jakobsson

Merge request reports

Loading