Skip to content

Commit 38c5ad8

Browse files
tautschnigNlightNFotis
authored andcommitted
Fix invalid-escape-sequence warning
Python warns about the use of `\d`: we should use raw strings here as that's not meant to be an escape sequence.
1 parent 634800e commit 38c5ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pull-request-check-rust-api.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# by the other jobs already present in `pull-request-checks.yaml`.
6363
- name: Run Rust API tests
6464
run: |
65-
VERSION=$(cat src/config.inc | python3 -c "import sys,re;line = [line for line in sys.stdin if re.search('CBMC_VERSION = (\d+\.\d+\.\d+)', line)];sys.stdout.write(re.search('CBMC_VERSION = (\d+\.\d+\.\d+)', line[0]).group(1))")
65+
VERSION=$(cat src/config.inc | python3 -c "import sys,re;line = [line for line in sys.stdin if re.search(r'CBMC_VERSION = (\d+\.\d+\.\d+)', line)];sys.stdout.write(re.search(r'CBMC_VERSION = (\d+\.\d+\.\d+)', line[0]).group(1))")
6666
cd src/libcprover-rust;\
6767
cargo clean;\
6868
CBMC_INCLUDE_DIR=../../${{env.default_include_dir}} CBMC_LIB_DIR=../../${{env.default_build_dir}}/lib CBMC_VERSION=$VERSION cargo test -- --test-threads=1
@@ -108,7 +108,7 @@ jobs:
108108
# (https://docs.rs/cc/latest/cc/struct.Build.html#method.cpp_link_stdlib)
109109
CXXSTDLIB: c++
110110
run: |
111-
VERSION=$(cat src/config.inc | python3 -c "import sys,re;line = [line for line in sys.stdin if re.search('CBMC_VERSION = (\d+\.\d+\.\d+)', line)];sys.stdout.write(re.search('CBMC_VERSION = (\d+\.\d+\.\d+)', line[0]).group(1))")
111+
VERSION=$(cat src/config.inc | python3 -c "import sys,re;line = [line for line in sys.stdin if re.search(r'CBMC_VERSION = (\d+\.\d+\.\d+)', line)];sys.stdout.write(re.search(r'CBMC_VERSION = (\d+\.\d+\.\d+)', line[0]).group(1))")
112112
cd src/libcprover-rust;\
113113
cargo clean;\
114114
CBMC_INCLUDE_DIR=../../${{env.default_include_dir}} CBMC_LIB_DIR=../../${{env.default_build_dir}}/lib CBMC_VERSION=$VERSION cargo test --verbose -- --test-threads=1

0 commit comments

Comments
 (0)