Skip to content

Commit 48e3ce4

Browse files
committed
Don't test emacs autosave files
This is a tiny improvement to run-tests.php which helps keep it from tripping over emacs autosave files.
1 parent 78ef25b commit 48e3ce4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run-tests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,9 @@ function find_files(string $dir, bool $is_ext_dir = false, bool $ignore = false)
10911091
}
10921092

10931093
// Otherwise we're only interested in *.phpt files.
1094-
if (substr($name, -5) == '.phpt') {
1094+
// (but not those starting with a dot, which are hidden on
1095+
// many platforms)
1096+
if (substr($name, -5) == '.phpt' && substr($name, 0, 1) !== '.' ) {
10951097
if ($ignore) {
10961098
$ignored_by_ext++;
10971099
} else {

0 commit comments

Comments
 (0)