[Fixed][Diff] Link name for git diffs
- Also adapted file test to new name
This commit is contained in:
parent
e871efe4bd
commit
877695378c
|
|
@ -305,10 +305,10 @@ class DiffOptions(BaseOptions):
|
|||
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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue