buda-base / asset-manager

Asset Manager and audit tool
The Unlicense
0 stars 0 forks source link

audittool "WarnAsError" tripped up by white space in shell.properties #102

Closed TBRC-TimB closed 3 years ago

TBRC-TimB commented 3 years ago

When adding tests to shell.properties, whitespace after the test number can cause errors in audittool.

jimk-bdrc commented 3 years ago

Equally true for before the number.

102, installed on bodhi, gives this output (with ErrorAsWarning activated for 115)

╭─   ~/tmp ·······················································································  12s jimk@bodhi  18:28:49 ─╮
╰─❯ audittool.sh ~/home/prod/asset-manager-85/W8LS73821                                                                          ─╯
starting /home/jimk/home/prod/asset-manager-85/W8LS73821
INFO  Passed    /home/jimk/home/prod/asset-manager-85/W8LS73821     Archive EXIF Test
INFO  Passed    /home/jimk/home/prod/asset-manager-85/W8LS73821     No Files in Root Folder
INFO  Passed    /home/jimk/home/prod/asset-manager-85/W8LS73821     Image EXIF Test
INFO  Passed    /home/jimk/home/prod/asset-manager-85/W8LS73821     Web Image Attributes
INFO  Passed    /home/jimk/home/prod/asset-manager-85/W8LS73821     No folders allowed in Image Group folders
INFO  Passed    /home/jimk/home/prod/asset-manager-85/W8LS73821     File Sequence Test
INFO  Passed    /home/jimk/home/prod/asset-manager-85/W8LS73821     File Size Test
╭─   ~/tmp ························································································  4s jimk@bodhi  18:28:58 ─╮
╰─❯ !gr                                                                                                                          ─╯
╭─   ~/tmp ····························································································· jimk@bodhi  18:29:01 ─╮
╰─❯ grep ErrorsAs /usr/local/bin/audittool/at9.04-2021-02-08/shell.properties                                                    ─╯
# ErrorsAsWarning
ErrorsAsWarning= 999, 42 , 115

On sattva, Same, except Archive EXIF Test failed (115 was not active ErrorAsWarning)