Kouhei Sutou
null+****@clear*****
Thu Jul 9 16:37:45 JST 2015
Kouhei Sutou 2015-07-09 16:37:45 +0900 (Thu, 09 Jul 2015) New Revision: 221f09f9b96906d7f9e14b5b1195ecc19f80e5aa https://github.com/groonga/groonga/commit/221f09f9b96906d7f9e14b5b1195ecc19f80e5aa Message: doc: normalize file names in backtraces Modified files: doc/update_execution_example.py Modified: doc/update_execution_example.py (+10 -0) =================================================================== --- doc/update_execution_example.py 2015-07-09 16:04:50 +0900 (c7670c6) +++ doc/update_execution_example.py 2015-07-09 16:37:45 +0900 (2e602f6) @@ -37,6 +37,9 @@ def reconnect(name): fout = None +def normalize_file_name(file_name): + return re.sub('^.*?/lib/', 'lib/', file_name) + def normalize_output(output): status = output[0] if status: @@ -44,6 +47,13 @@ def normalize_output(output): normalized_elapsed_time = 0.000355720520019531 status[1] = normalized_start_time status[2] = normalized_elapsed_time + return_code = status[0] + if return_code != 0: + backtraces = status[4] + if backtraces: + for backtrace in backtraces: + file_name = backtrace[1] + backtrace[1] = normalize_file_name(file_name) return output def remove_continuous_marks(command): -------------- next part -------------- HTML����������������������������...Download