LibraryOfCongress / bagit-conformance-suite

Test cases for validating BagIt implementations
Other
10 stars 8 forks source link

Logging configuration #11

Closed whikloj closed 2 years ago

whikloj commented 4 years ago

This is more of a question than an issue.

When running the test-harness I never see the output of this line https://github.com/LibraryOfCongress/bagit-conformance-suite/blob/master/test-harness#L46

So to know where I am (and hence what exact test I'm failing) I have to insert a print statement for that message. The verbosity argument has no effect on what is displayed in the output.

Am I doing something wrong?

> python3 test-harness  /sw/var/www/DAM2/BagItTools/verify.php                 
ERROR:root:Expected invalid test same-filename-listed-twice-with-the-same-hash: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test notAllManifestsListAllFiles: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test same-filename-listed-twice-with-different-hashes: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test missing-baginfo: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test corrupt-data-file: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test extra-file-in-bag: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test out-of-scope-file-paths-using-dot-notation: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test out-of-scope-file-paths-using-dot-notation-for-fetch: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test missing-bagit.txt: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test corrupt-tag-file: rc=0, stdout=0 bytes, stderr=0 bytes
ERROR:root:Expected invalid test same-filename-listed-twice-with-different-hashes: rc=0, stdout=0 bytes, stderr=0 bytes
WARNING:root:Expected warning test same-filename-listed-twice-with-the-same-hash: rc=0, stdout=0 bytes, stderr=0 bytes
WARNING:root:Expected warning test special-system-files: rc=0, stdout=0 bytes, stderr=0 bytes
WARNING:root:Expected warning test relative-path: rc=0, stdout=0 bytes, stderr=0 bytes
WARNING:root:Expected warning test duplicate-file-with-different-case: rc=0, stdout=0 bytes, stderr=0 bytes
WARNING:root:Expected warning test same-filename-listed-twice-with-different-normalization: rc=0, stdout=0 bytes, stderr=0 bytes
WARNING:root:Expected warning test made-with-md5sum-tools: rc=0, stdout=0 bytes, stderr=0 bytes
> python3 test-harness -vvv /sw/var/www/DAM2/BagItTools/verify.php
Expected invalid test same-filename-listed-twice-with-the-same-hash: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test notAllManifestsListAllFiles: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test same-filename-listed-twice-with-different-hashes: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test missing-baginfo: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test corrupt-data-file: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test extra-file-in-bag: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test out-of-scope-file-paths-using-dot-notation: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test out-of-scope-file-paths-using-dot-notation-for-fetch: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test missing-bagit.txt: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test corrupt-tag-file: rc=0, stdout=0 bytes, stderr=0 bytes
Expected invalid test same-filename-listed-twice-with-different-hashes: rc=0, stdout=0 bytes, stderr=0 bytes
Expected warning test same-filename-listed-twice-with-the-same-hash: rc=0, stdout=0 bytes, stderr=0 bytes
Expected warning test special-system-files: rc=0, stdout=0 bytes, stderr=0 bytes
Expected warning test relative-path: rc=0, stdout=0 bytes, stderr=0 bytes
Expected warning test duplicate-file-with-different-case: rc=0, stdout=0 bytes, stderr=0 bytes
Expected warning test same-filename-listed-twice-with-different-normalization: rc=0, stdout=0 bytes, stderr=0 bytes
Expected warning test made-with-md5sum-tools: rc=0, stdout=0 bytes, stderr=0 bytes