Skip to content
Snippets Groups Projects
Commit d4ca24fc authored by Frederic Danis's avatar Frederic Danis
Browse files

run-aa-test: Fix call to csplit


New version of `csplit` from `rust-coreutils` fails with following error:
  $ csplit R1.13a.1_bluez-spp.expected -f /tmp/EXPECT -b "%d" "/^## alternative ##$/" {*}
  csplit: error: incorrect conversion specification in suffix

Replacing `%d` by `%0d` fixes it.

Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
parent 7828e567
No related branches found
No related tags found
1 merge request!8run-aa-test: Fix call to csplit
......@@ -143,7 +143,7 @@ echo "#---8<--- expected parsed apparmor output from journal"
cat ${EXPECT_FILE} | sed 's/^/# /'
echo "#--->8---"
csplit ${EXPECT_FILE} -f ${TMP_DIR}/EXPECT -b "%d" "/^${ALTERNATIVE_SEPARATOR}$/" {*}
csplit ${EXPECT_FILE} -f ${TMP_DIR}/EXPECT -b "%0d" "/^${ALTERNATIVE_SEPARATOR}$/" {*}
# Old versions of csplit don't provide "--suppress-matched", strip separator separately
for FILE in ${TMP_DIR}/EXPECT*; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment