spacewander commented on pull request #5717: URL: https://github.com/apache/apisix/pull/5717#issuecomment-987601512
The duplicate sections are removed by this script: ```python #!/usr/bin/env python # coding: utf-8 # Usage: ./simpify.py $test_filename import sys with open(sys.argv[1]) as f: lines = [l.rstrip() for l in f.readlines()] newlines = [] for i, l in enumerate(lines): if ((l == "GET /t" and lines[i-1] == "--- request") or (l == "[error]" and lines[i-1] == "--- no_error_log")): newlines = newlines[:-1] continue newlines.append(l) res = "\n".join(newlines) # print(res) with open(sys.argv[1], "w") as f: f.write(res + '\n') ``` I also use reindex to update the TEST number: https://github.com/openresty/openresty-devel-utils#reindex -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org