Only diff the commits for SPSA tests

This commit is contained in:
andrew committed 2023-09-19 16:12:36 -04:00
1 parent ef96dd4dfc
commit d1b354d0fd
1 file changed
+3
+3
View File
@@ -52,6 +52,9 @@ def gitDiffLink(test):
else:
repo = OpenBench.utils.path_join(*test.dev.source.split('/')[:-2])
if test.test_mode == 'SPSA':
return OpenBench.utils.path_join(repo, 'compare', test.dev.sha[:8])
return OpenBench.utils.path_join(repo, 'compare',
'{0}..{1}'.format( test.base.sha[:8], test.dev.sha[:8]))