Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5430fa7

Browse files
committed
Fix test image triager Reject button.
On Linux, the expected image may be a symlink to the repository file, which causes a crash if you try to copy it over.
1 parent e5bd5b9 commit 5430fa7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/triage_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def reject(self):
309309
"""
310310
Reject this test by copying the expected result to the source tree.
311311
"""
312-
copy_file(self.dir / self.expected, self.destdir / self.generated)
312+
expected = self.dir / self.expected
313+
if not expected.is_symlink():
314+
copy_file(expected, self.destdir / self.generated)
313315
self.status = 'reject'
314316

315317

0 commit comments

Comments
 (0)