tests/shell: fix flake8 errors in Python script

This commit is contained in:
Alexandre Abadie 2020-11-03 15:38:22 +01:00
parent 3e3da1217d
commit cf154a587a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -24,7 +24,7 @@ EXPECTED_HELP = (
EXPECTED_PS = ( EXPECTED_PS = (
'\tpid | state Q | pri', '\tpid | state Q | pri',
'\t \d | running Q | 7' r'\t \d | running Q | 7'
) )
RIOT_TERMINAL = os.environ.get('RIOT_TERMINAL') RIOT_TERMINAL = os.environ.get('RIOT_TERMINAL')
@ -74,7 +74,7 @@ CMDS = (
('echo escaped\\ space', '"echo""escaped space"'), ('echo escaped\\ space', '"echo""escaped space"'),
('echo escape within \'\\s\\i\\n\\g\\l\\e\\q\\u\\o\\t\\e\'', '"echo""escape""within""singlequote"'), ('echo escape within \'\\s\\i\\n\\g\\l\\e\\q\\u\\o\\t\\e\'', '"echo""escape""within""singlequote"'),
('echo escape within "\\d\\o\\u\\b\\l\\e\\q\\u\\o\\t\\e"', '"echo""escape""within""doublequote"'), ('echo escape within "\\d\\o\\u\\b\\l\\e\\q\\u\\o\\t\\e"', '"echo""escape""within""doublequote"'),
("""echo "t\e st" "\\"" '\\'' a\ b""", '"echo""te st"""""\'""a b"'), ("""echo "t\e st" "\\"" '\\'' a\ b""", '"echo""te st"""""\'""a b"'), # noqa: W605
# test correct quoting # test correct quoting
('echo "hello"world', '"echo""helloworld"'), ('echo "hello"world', '"echo""helloworld"'),