From 93be7fe6bcd5e09ba3ac2bb6f93fef74a9f5f202 Mon Sep 17 00:00:00 2001 From: Maxim Date: Thu, 18 Jul 2024 00:13:56 +0300 Subject: [PATCH] Fix fixing PDF/UA metadata test --- CLI/Metadata/AddMetadata/addMetadata.bats | 9 ++++++++- .../{veraPDF_MF 35.pdf => veraPDF_MF 35 ua1.pdf} | Bin 2 files changed, 8 insertions(+), 1 deletion(-) rename CLI/Metadata/AddMetadata/{veraPDF_MF 35.pdf => veraPDF_MF 35 ua1.pdf} (100%) diff --git a/CLI/Metadata/AddMetadata/addMetadata.bats b/CLI/Metadata/AddMetadata/addMetadata.bats index ad27d27..0207eea 100644 --- a/CLI/Metadata/AddMetadata/addMetadata.bats +++ b/CLI/Metadata/AddMetadata/addMetadata.bats @@ -33,7 +33,14 @@ teardown() { for x in $(ls $BATS_TEST_TMPDIR/**/$PATTERN*.pdf); do printf "%s\n" $x >&3 - run $BATS_TEST_TMPDIR/verapdf $x --fixmetadata + + FLAVOUR=auto + + if [[ $x == *"ua1"* ]]; then + FLAVOUR=ua1 + fi + + run $BATS_TEST_TMPDIR/verapdf $x --fixmetadata --flavour $FLAVOUR echo "status $(basename $x): $status" >&3 [ "$status" -eq 1 ] diff --git a/CLI/Metadata/AddMetadata/veraPDF_MF 35.pdf b/CLI/Metadata/AddMetadata/veraPDF_MF 35 ua1.pdf similarity index 100% rename from CLI/Metadata/AddMetadata/veraPDF_MF 35.pdf rename to CLI/Metadata/AddMetadata/veraPDF_MF 35 ua1.pdf