mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-08 06:31:50 +00:00
The test library includes many assertions intended to validate a command's output. These assertions take the command output and compare it against an expected output. Some of these assertions take a literal string and others take a string with regular expression values. However, regardless of what king of string is being used for the expected output, there are some common lines in the output that are usually not important and are safe to ignore. An example would be empty lines or lines with only dots. This commit adds the capability for those assertions to use an ignore file to include patterns that could be ignored/removed from the command's output before comparing it against the expected output. Also with this commit empty lines and lines with only dots will be ignored by default. If the assertion needs to validate an exact output without ignoring anything in the ignore-list nor ignoring dots and blank lines, then the --identical option can be used with the assertion.