summaryrefslogtreecommitdiff
path: root/python/samba/tests/source_chars.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/samba/tests/source_chars.py')
-rw-r--r--python/samba/tests/source_chars.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/samba/tests/source_chars.py b/python/samba/tests/source_chars.py
index 3f306f12f9a..a5e9fc2fb14 100644
--- a/python/samba/tests/source_chars.py
+++ b/python/samba/tests/source_chars.py
@@ -276,6 +276,10 @@ class CharacterTests(TestCase):
def check_file_text():
"""If called directly as a script, count the found characters."""
+ global ROOT
+ if not ROOT:
+ ROOT = _find_root()
+
counts = Counter()
for name in iter_source_files():
fullname = os.path.join(ROOT, name)