From 9f4afcc6e294c3c34c5643d4cdeffc619e788f2b Mon Sep 17 00:00:00 2001 From: Kenton Groombridge Date: Sun, 5 Dec 2021 12:58:55 -0500 Subject: [PATCH] testing: accept '@' as a valid ending character in filecon checker Signed-off-by: Kenton Groombridge --- testing/check_fc_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/check_fc_files.py b/testing/check_fc_files.py index ca8fa7340..1d41a3b7a 100755 --- a/testing/check_fc_files.py +++ b/testing/check_fc_files.py @@ -246,7 +246,7 @@ def analyze_fc_file(fc_path): # If the reduced path still ends with a special character, something went wrong. # Instead of guessing the possible buggy characters, list the allowed ones. - if reduced_path and not re.match(r'[-0-9A-Za-z_\]~ᠰ]', reduced_path[-1]): + if reduced_path and not re.match(r'[-0-9A-Za-z_@\]~ᠰ]', reduced_path[-1]): if path != '/': if reduced_path == path: print(f"{prefix}unexpected end of file pattern for {path}")