diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-03-16 17:14:06 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-03-16 17:14:06 +0200 |
commit | 306722dbf9dadd8d916b9a1811820bd1f96242be (patch) | |
tree | 613885407348ae27a80d324a6db3fb266cc8d6cb | |
parent | a8fc67a36ee9921163f027a1c911a30c266fa200 (diff) | |
download | ambient-driver-306722dbf9dadd8d916b9a1811820bd1f96242be.tar.gz |
fix: regex has no way to match EOL
In the stderr output, there is a newline to mark the end of a line.
However, when Python matches the string against the regex, it doesn't
treat the newline as EOL. Work around this by not matching with $.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
-rw-r--r-- | ambient-driver.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ambient-driver.md b/ambient-driver.md index a0a38b8..d78c2cb 100644 --- a/ambient-driver.md +++ b/ambient-driver.md @@ -133,7 +133,7 @@ given an Ambient VM image ambient.qcow2 given file cwd.yaml given a directory path/to/project/srcdir when I run env AMBIENT_LOG=ambient_driver::action=trace ambient-driver run cwd.yaml -then stderr matches regex INFO.*cwd:.*/path/to/project/srcdir$ +then stderr matches regex INFO.*cwd:.*/path/to/project/srcdir ~~~ ~~~{#cwd.yaml .file .yaml} |