tests/sys/shell: escape backslash in test input - #22439
Conversation
Python 3.14 warns about the literal backslash-space sequence in the shell escaping test input. Escape the backslash in the Python string so the generated command stays unchanged without relying on an invalid escape sequence. Generated-by: OpenAI Codex Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
|
Hey @Old-Ding, thank you for your first contribution! We really appreciate it! If you haven't already, please take a look at our contributing guidelines before the review process starts. Also, due to how the GitHub review system works, please avoid force-pushing or squashing your commits unless asked to by a maintainer (or unless your commit is still in "draft commit" stage). Lastly, make sure to comply with our AI Policy when using AI. Your pull request will be reviewed as soon as possible. |
|
Before we go any further, I want to strongly emphasize just how important it is to get a proper, working development environment set up — this really is the foundation upon which everything else depends. That said, I'd also love to learn more about the backstory here — specifically, how did you first stumble upon this issue? Was this something that came up organically while you were actively using this module for a particular purpose or use case? Any detail you can share, however small it may seem, would be genuinely useful. On top of that, whenever you get the chance, would you be able to send over a photo showing your test setup in its current state — and, alongside that, paste in the complete, word-for-word log output from your test run? Having both the visual and the raw text will make it far easier to fully understand — and ultimately resolve — the situation. |
Summary
\as an invalid escape sequence# noqa: W605suppressionVerification
pythoncompile check withSyntaxWarningcaptured fortests/sys/shell/tests/01-run.pyreportsTOTAL 0git diff --checkgit ls-files --eol tests/sys/shell/tests/01-run.pyI also checked for open duplicate PRs/issues mentioning
invalid escape,W605, and this test file, and found no matches.I did not run the full shell test because it depends on a RIOT board/terminal test environment that is not available locally.
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: