Skip to content

Commit fc44784

Browse files
committed
runtest: ignore Emacs lock files (.#XXX)
1 parent 2194cd8 commit fc44784

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/testing/runtest

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ class Gather:
333333
return True
334334
return False
335335

336+
@staticmethod
337+
def is_file_statically_ignored(src):
338+
return os.path.basename(src).startswith('.#')
339+
336340
@classmethod
337341
def gather(cls, obj):
338342
try:
@@ -376,7 +380,11 @@ class Gather:
376380
dirs = map(cls.gather, dirs)
377381

378382
files = list(itertools.chain.from_iterable(dirs))
379-
files = [x for x in files if not cls.is_file_excluded(x.filename, scenario.fexclude)]
383+
files = [
384+
x for x in files if
385+
not cls.is_file_statically_ignored(x.filename) and
386+
not cls.is_file_excluded(x.filename, scenario.fexclude)
387+
]
380388

381389
return files
382390

0 commit comments

Comments
 (0)