Skip to content

Commit

Permalink
Fix regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgetarazevich committed Nov 2, 2023
1 parent 88a7700 commit cecba27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CLI/Options/config/config.bats
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ config_app_fixer_check() {
run $BATS_TEST_TMPDIR/verapdf $BATS_TEST_TMPDIR/TestList.zip --config --savefolder $BATS_TEST_TMPDIR

[ "$status" -eq 1 ]
assert_output --partial '<fix>Identification schema added</fix>'
assert_output --partial '<fix>Set property part value to 2 in Identification schema</fix>'
assert_output --partial '<fix>Set new modification date to metadata</fix>'
assert_output --partial '<fix>Set new modification date to info dictionary</fix>'
assert_output --partial '<fix>Metadata stream filtered with FlateDecode</fix>'
Expand Down
12 changes: 6 additions & 6 deletions CLI/Options/debug/debug.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ setup() {
run verapdf/verapdf $BATS_TEST_DIRNAME --debug --format text

[ "$status" -eq 1 ]
assert_output --partial "WARNING: $BATS_TEST_DIRNAME/a.pdf"
assert_output --partial "WARNING: $BATS_TEST_DIRNAME/veraFixMd_a.pdf"
assert_output --partial "WARNING: $BATS_TEST_DIRNAME/veraFixMd_a_(0).pdf"
assert_output --partial "INFO: $BATS_TEST_DIRNAME/a.pdf"
assert_output --partial "INFO: $BATS_TEST_DIRNAME/veraFixMd_a.pdf"
assert_output --partial "INFO: $BATS_TEST_DIRNAME/veraFixMd_a_(0).pdf"
}

@test "--debug, Outputs all processed file names, zip file" {
Expand All @@ -24,7 +24,7 @@ setup() {
[ "$status" -eq 1 ]

echo $(ls -la $BATS_TEST_DIRNAME)
assert_output --partial "WARNING: $PROJECT_ROOT/CLI/Resources/files_debug_option.zip/a.pdf"
assert_output --partial "WARNING: $PROJECT_ROOT/CLI/Resources/files_debug_option.zip/veraFixMd_a.pdf"
assert_output --partial "WARNING: $PROJECT_ROOT/CLI/Resources/files_debug_option.zip/veraFixMd_a_(0).pdf"
assert_output --partial "INFO: $PROJECT_ROOT/CLI/Resources/files_debug_option.zip/a.pdf"
assert_output --partial "INFO: $PROJECT_ROOT/CLI/Resources/files_debug_option.zip/veraFixMd_a.pdf"
assert_output --partial "INFO: $PROJECT_ROOT/CLI/Resources/files_debug_option.zip/veraFixMd_a_(0).pdf"
}
2 changes: 1 addition & 1 deletion CLI/Options/progress/progress.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ setup() {
progress_check() {
echo "Running: $1" >&3
run verapdf/verapdf $FILE_PATH/$1 --progress
assert_output --partial 'Progress: 237 checks / 4 failed / 183 processed objects / 0 in stack'
assert_output --partial 'Progress: 255 checks / 4 failed / 189 processed objects / 0 in stack'
[ "$status" -eq 1 ]
}

0 comments on commit cecba27

Please sign in to comment.