From 877695378c955eec818317aad194a796cc07d538 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 9 Sep 2022 13:30:27 -0300 Subject: [PATCH] [Fixed][Diff] Link name for git diffs - Also adapted file test to new name --- kibot/out_diff.py | 4 ++-- tests/test_plot/test_misc.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kibot/out_diff.py b/kibot/out_diff.py index e716094ac..073559160 100644 --- a/kibot/out_diff.py +++ b/kibot/out_diff.py @@ -305,10 +305,10 @@ def cache_git(self, name): self.checkedout = True else: name_ori = 'Dirty' if self.git_dirty() else 'HEAD' - # A short version of the current hash - self.git_hash = self.get_git_point_desc(name_ori) # Populate the cache hash = self.cache_file() + # A short version of the current hash + self.git_hash = self.get_git_point_desc(name_ori) finally: self.undo_git() return hash diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index 8aecda3a9..21b3fa379 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -1410,6 +1410,6 @@ def test_diff_file_sch_1(test_dir): yaml = 'diff_file_sch_'+('k5' if context.ki5() else 'k6') ctx = context.TestContext(test_dir, prj, yaml) ctx.run() - ctx.expect_out_file(prj+'-diff_sch_None-None.pdf') + ctx.expect_out_file(prj+'-diff_sch_FILE-Current.pdf') ctx.compare_pdf(prj+'-diff_sch.pdf') ctx.clean_up(keep_project=True)