]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Save parsed tsan files with .txt extension
authorOndřej Surý <ondrej@isc.org>
Mon, 14 Mar 2022 18:01:43 +0000 (19:01 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 23 Mar 2022 19:31:50 +0000 (20:31 +0100)
When the parse tsan files have text extension they can be viewed
directly in the GitLab web UI without downloading them locally.

(cherry picked from commit 80582073a5f2d279f930af292e276fb23786a1ff)

util/parse_tsan.py

index 582d666cc0dc157d8d664215ca9e14e72020b5e4..7dfde3b13bddd532597ed8a36ae029bb29d85f79 100755 (executable)
@@ -85,7 +85,7 @@ with open(sys.argv[1], "r", encoding='utf-8') as f:
                 DNAME = os.path.join(OUT, DNAME)
                 if not os.path.isdir(DNAME):
                     os.mkdir(DNAME)
-                FNAME = sha256(S.block.encode('utf-8')).hexdigest() + ".tsan"
+                FNAME = sha256(S.block.encode('utf-8')).hexdigest() + ".txt"
                 FNAME = os.path.join(DNAME, FNAME)
                 if not os.path.isfile(FNAME):
                     with open(FNAME, "w", encoding='utf-8') as w: