You can also add `&& strpos($relative_path, $this->root_path . 'tests/') !== 0` i think: i tested with `phpBB/develop/export_events_for_wiki.php php nickvergessen/newspage` and it failed because of `tests/event/menu_link_test.php`