summaryrefslogtreecommitdiff
path: root/zephyr/zmake/tests/test_build_config.py
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-02-10 09:31:06 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-10 17:38:40 +0000
commit323a9788a25afe73ca646ef14824ca22711c506a (patch)
treece4d05a743502a6849483c4a3a2196b5b9cdce5b /zephyr/zmake/tests/test_build_config.py
parent38f35d6ca279effd22261b534e92c311bf3ac31e (diff)
downloadchrome-ec-323a9788a25afe73ca646ef14824ca22711c506a.tar.gz
zephyr: zmake: remove . and .. from file names in BuildConfig test
. and .. are special names for the current and parent directories, respectively. Thus, we should not use these names when formulating filenames for testing. BUG=chromium:1176487 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I2f16cb960878aa8a61f77ca1d074e0bac59bca3d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2685403 Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/zmake/tests/test_build_config.py')
-rw-r--r--zephyr/zmake/tests/test_build_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/zmake/tests/test_build_config.py b/zephyr/zmake/tests/test_build_config.py
index 6b835fdca4..f72386bd00 100644
--- a/zephyr/zmake/tests/test_build_config.py
+++ b/zephyr/zmake/tests/test_build_config.py
@@ -19,7 +19,7 @@ from zmake.build_config import BuildConfig
filenames = st.text(
alphabet=set(string.printable) - {'/', ';'},
min_size=1,
- max_size=254)
+ max_size=254).filter(lambda name: name not in ('.', '..'))
paths = st.builds(lambda parts: pathlib.Path('/', *parts),
st.iterables(filenames, min_size=1))
config_keys = st.text(alphabet=set(string.ascii_uppercase) | {'_'}, min_size=1)