Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runner: fix python escaping warnings #1463

Closed
wants to merge 1 commit into from

Conversation

jasonish
Copy link
Member

Fixes the following warnings in newer versions of Python:

/home/jason/oisf/dev/suricata-verify/dns-response-tests/run.py:54: SyntaxWarning: invalid escape sequence '\s'
if os.path.exists("src\suricata.exe"):
/home/jason/oisf/dev/suricata-verify/dns-response-tests/run.py:55: SyntaxWarning: invalid escape sequence '\s'
suricata_bin = "src\suricata.exe"
/home/jason/oisf/dev/suricata-verify/dns-response-tests/run.py:144: SyntaxWarning: invalid escape sequence '\d'
m = re.search("(?:Suricata version |^)(\d+).?(\d+)?.?(\d+)?.", str(buf).strip())
/home/jason/oisf/dev/suricata-verify/dns-response-tests/run.py:399: SyntaxWarning: invalid escape sequence '['
m = re.match("^(.
)[(\d+)]$", part)
/home/jason/oisf/dev/suricata-verify/dns-response-tests/run.py:873: SyntaxWarning: invalid escape sequence '\s'
args += re.split("\s", arg)

@jasonish
Copy link
Member Author

@jasonish
Copy link
Member Author

@victorjulien Can you run this through your QA? A little worried about Windows.

@victorjulien
Copy link
Member

@victorjulien Can you run this through your QA? A little worried about Windows.

Run started.

@catenacyber catenacyber added the framework Has a suricata-verify framework change label Nov 23, 2023
@victorjulien
Copy link
Member

Merged in #1463, thanks!

@jasonish jasonish deleted the run-escaping/v1 branch August 15, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework Has a suricata-verify framework change
Development

Successfully merging this pull request may close these issues.

3 participants