Skip to content

Commit efed6a9

Browse files
committed
Bypass cp alias in visualize_tests approve command
Many shells alias cp to cp -i, which prompts before overwriting an existing baseline image — annoying when approving multiple failing tests in one paste. Prefix the generated cp lines with a backslash so the shell skips the alias and runs the binary directly.
1 parent b28cf8d commit efed6a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/visualize_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def get_test_images() -> Iterator[TestImage]:
577577
const file = r.dataset.file;
578578
subdirs.add(sub);
579579
lines.push(
580-
'cp tests/result_images/' + sub + '/' + file +
580+
'\\\\cp tests/result_images/' + sub + '/' + file +
581581
' tests/baseline_images/' + sub + '/' + file
582582
);
583583
}

0 commit comments

Comments
 (0)