summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/zmake/tests/test_util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/zmake/tests/test_util.py b/zephyr/zmake/tests/test_util.py
index 0524a153fd..0c4cd4dda5 100644
--- a/zephyr/zmake/tests/test_util.py
+++ b/zephyr/zmake/tests/test_util.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import pathlib
+import re
import tempfile
import hypothesis
@@ -12,7 +13,9 @@ import pytest
import zmake.util as util
# Strategies for use with hypothesis
-relative_path = st.from_regex(regex=r"\A\w+[\w/]*\Z")
+relative_path = st.from_regex(
+ regex=re.compile(r"\A\w{1,255}(/\w{1,255}){0,15}\Z", re.ASCII)
+)
@hypothesis.given(relative_path, relative_path, relative_path)