summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2018-08-02 13:16:49 +0200
committerMichal Sekletar <msekleta@redhat.com>2018-08-02 13:34:51 +0200
commit1bb734a44952a51285057409ba7b1c3e7a162cea (patch)
treedda830e0d3f696e69b638e31eed47721e5746322 /test
parent0c5b8096cb23701f8048dba33a38e1b55249cab3 (diff)
downloadsystemd-1bb734a44952a51285057409ba7b1c3e7a162cea.tar.gz
Revert "udev: remove WAIT_FOR key"
This reverts commit f2b8052fb648b788936dd3e85be6a9aca90fbb2f. Resolves: #1523213
Diffstat (limited to 'test')
-rwxr-xr-xtest/rule-syntax-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rule-syntax-check.py b/test/rule-syntax-check.py
index dfb06d9ed9..706d93632e 100755
--- a/test/rule-syntax-check.py
+++ b/test/rule-syntax-check.py
@@ -18,7 +18,7 @@ if not rules_files:
quoted_string_re = r'"(?:[^\\"]|\\.)*"'
no_args_tests = re.compile(r'(ACTION|DEVPATH|KERNELS?|NAME|SYMLINK|SUBSYSTEMS?|DRIVERS?|TAG|PROGRAM|RESULT|TEST)\s*(?:=|!)=\s*' + quoted_string_re + '$')
args_tests = re.compile(r'(ATTRS?|ENV|TEST){([a-zA-Z0-9/_.*%-]+)}\s*(?:=|!)=\s*' + quoted_string_re + '$')
-no_args_assign = re.compile(r'(NAME|SYMLINK|OWNER|GROUP|MODE|TAG|RUN|LABEL|GOTO|OPTIONS|IMPORT)\s*(?:\+=|:=|=)\s*' + quoted_string_re + '$')
+no_args_assign = re.compile(r'(NAME|SYMLINK|OWNER|GROUP|MODE|TAG|RUN|LABEL|GOTO|WAIT_FOR|OPTIONS|IMPORT)\s*(?:\+=|:=|=)\s*' + quoted_string_re + '$')
args_assign = re.compile(r'(ATTR|ENV|IMPORT|RUN){([a-zA-Z0-9/_.*%-]+)}\s*(=|\+=)\s*' + quoted_string_re + '$')
# Find comma-separated groups, but allow commas that are inside quoted strings.
# Using quoted_string_re + '?' so that strings missing the last double quote