From: Daniel Salzman Date: Sat, 26 Sep 2020 07:10:20 +0000 (+0200) Subject: tests-extra: fix test location info in the case.log X-Git-Tag: v3.1.0~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f3ddf62322535289be31fcc538ecb0f889ceacc;p=thirdparty%2Fknot-dns.git tests-extra: fix test location info in the case.log --- diff --git a/tests-extra/tools/dnstest/utils.py b/tests-extra/tools/dnstest/utils.py index d30c6aadab..e5a30e251f 100644 --- a/tests-extra/tools/dnstest/utils.py +++ b/tests-extra/tools/dnstest/utils.py @@ -29,8 +29,9 @@ def test_info(): info = "" frames = inspect.getouterframes(inspect.currentframe()) for frame in frames: - if Context().test_dir == os.path.dirname(frame[1]): - info = "%s#%i" % (Context().test_dir, frame[2]) + frame_dir = os.path.normpath(os.path.dirname(frame[1])) + if frame_dir in Context().test_dir: + info = "%s#%i" % (frame_dir, frame[2]) break parts = info.split("/")